Skip to content

PgCidrConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Serializes cidr as a string and parses it using PostgreSQL on the active backend.

public sealed class PgCidrConverter : JsonConverter<PgCidr>

Inheritance: object, JsonConverter, JsonConverter<PgCidr>

public PgCidrConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”
public override PgCidr Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgCidr

Write(Utf8JsonWriter, PgCidr, JsonSerializerOptions)

Section titled “Write(Utf8JsonWriter, PgCidr, JsonSerializerOptions)”
public override void Write(Utf8JsonWriter writer, PgCidr value, JsonSerializerOptions options)

Parameters:

writer — Utf8JsonWriter

value — PgCidr

options — JsonSerializerOptions