Skip to content

Latest commit

 

History

History
273 lines (201 loc) · 5.22 KB

Atc.Serialization.JsonConverters.md

File metadata and controls

273 lines (201 loc) · 5.22 KB

Atc.Serialization.JsonConverters


ITypeDiscriminator

public interface ITypeDiscriminator

Properties

TypeDiscriminator

TypeDiscriminator

JsonCultureInfoToLcidConverter

public class JsonCultureInfoToLcidConverter : JsonConverter<CultureInfo>

Methods

Read

CultureInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, CultureInfo value, JsonSerializerOptions options)

JsonCultureInfoToNameConverter

public class JsonCultureInfoToNameConverter : JsonConverter<CultureInfo>

Methods

Read

CultureInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, CultureInfo value, JsonSerializerOptions options)

JsonDateTimeOffsetMinToNullConverter

public class JsonDateTimeOffsetMinToNullConverter : JsonConverter<DateTimeOffset?>

Methods

Read

DateTimeOffset? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, DateTimeOffset? value, JsonSerializerOptions options)

JsonDirectoryInfoToFullNameConverter

public class JsonDirectoryInfoToFullNameConverter : JsonConverter<DirectoryInfo>

Methods

Read

DirectoryInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, DirectoryInfo value, JsonSerializerOptions options)

JsonElementObjectConverter

public class JsonElementObjectConverter : JsonConverter<object>

Methods

Read

object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)

JsonFileInfoToFullNameConverter

public class JsonFileInfoToFullNameConverter : JsonConverter<FileInfo>

Methods

Read

FileInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, FileInfo value, JsonSerializerOptions options)

JsonNumberToStringConverter

public class JsonNumberToStringConverter : JsonConverter<object>

Methods

CanConvert

bool CanConvert(Type typeToConvert)

Read

object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)

JsonStringEnumMemberConverter<T>

public class JsonStringEnumMemberConverter&lt;T&gt; : JsonConverter<T>

Methods

Read

T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)

JsonTimeSpanConverter

public class JsonTimeSpanConverter : JsonConverter<TimeSpan>

Methods

Read

TimeSpan Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, TimeSpan value, JsonSerializerOptions options)

JsonTypeDiscriminatorConverter<T>

public class JsonTypeDiscriminatorConverter&lt;T&gt; : JsonConverter<T>

Methods

Read

T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)

JsonUnixDateTimeOffsetConverter

public class JsonUnixDateTimeOffsetConverter : JsonConverter<DateTimeOffset?>

Methods

Read

DateTimeOffset? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, DateTimeOffset? value, JsonSerializerOptions options)

JsonUriToAbsoluteUriConverter

public class JsonUriToAbsoluteUriConverter : JsonConverter<Uri>

Methods

Read

Uri Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, Uri value, JsonSerializerOptions options)

JsonVersionConverter

public class JsonVersionConverter : JsonConverter<Version>

Methods

Read

Version Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write

void Write(Utf8JsonWriter writer, Version value, JsonSerializerOptions options)

Generated by MarkdownCodeDoc version 1.2