PgInetConverter
Namespace: Ankus.Serialization
Assembly: Ankus.Runtime.dll
Serializes inet as a string and parses it using PostgreSQL on the active backend.
public sealed class PgInetConverter : JsonConverter<PgInet>Inheritance: object, JsonConverter, JsonConverter<PgInet>
Constructors
Section titled “Constructors”PgInetConverter()
Section titled “PgInetConverter()”public PgInetConverter()Methods
Section titled “Methods”Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”public override PgInet Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)Parameters:
reader — Utf8JsonReader
typeToConvert — Type
options — JsonSerializerOptions
Returns: PgInet
Write(Utf8JsonWriter, PgInet, JsonSerializerOptions)
Section titled “Write(Utf8JsonWriter, PgInet, JsonSerializerOptions)”public override void Write(Utf8JsonWriter writer, PgInet value, JsonSerializerOptions options)Parameters:
writer — Utf8JsonWriter
value — PgInet
options — JsonSerializerOptions