Επεξεργασία

Κοινή χρήση μέσω


JsonMetadataServices Class

Definition

Provides helpers to create and initialize metadata for JSON-serializable types.

public ref class JsonMetadataServices abstract sealed
public static class JsonMetadataServices
type JsonMetadataServices = class
Public Class JsonMetadataServices
Inheritance
JsonMetadataServices

Remarks

This API is intended for use by the output of the System.Text.Json source generator. It should not be called directly.

Properties

BooleanConverter

Gets an object that converts Boolean values.

ByteArrayConverter

Gets an object that converts byte array values.

ByteConverter

Gets an object that converts Byte values.

CharConverter

Gets an object that converts Char values.

DateOnlyConverter

Returns a JsonConverter<T> instance that converts DateOnly values.

DateTimeConverter

Gets an object that converts DateTime values.

DateTimeOffsetConverter

Gets an object that converts DateTimeOffset values.

DecimalConverter

Gets an object that converts Decimal values.

DoubleConverter

Gets an object that converts Double values.

GuidConverter

Gets an object that converts Guid values.

HalfConverter

Returns a JsonConverter<T> instance that converts Half values.

Int128Converter

Returns a JsonConverter<T> instance that converts Int128 values.

Int16Converter

Gets an object that converts Int16 values.

Int32Converter

Gets an object that converts Int32 values.

Int64Converter

Gets an object that converts Int64 values.

JsonArrayConverter

Gets an object that converts JsonArray values.

JsonDocumentConverter

Returns a JsonConverter<T> instance that converts JsonDocument values.

JsonElementConverter

Gets a JSON converter that converts JsonElement values.

JsonNodeConverter

Gets an object that converts JsonNode values.

JsonObjectConverter

Gets an object that converts JsonObject values.

JsonValueConverter

Gets an object that converts JsonValue values.

MemoryByteConverter

Returns a JsonConverter<T> instance that converts Memory<T> values.

ObjectConverter

Gets an object that converts Object values.

ReadOnlyMemoryByteConverter

Returns a JsonConverter<T> instance that converts ReadOnlyMemory<T> values.

SByteConverter

Gets an object that converts SByte values.

SingleConverter

Gets an object that converts Single values.

StringConverter

Gets an object that converts String values.

TimeOnlyConverter

Returns a JsonConverter<T> instance that converts TimeOnly values.

TimeSpanConverter

Gets a JSON converter that converts TimeSpan values.

UInt128Converter

Returns a JsonConverter<T> instance that converts UInt128 values.

UInt16Converter

Gets an object that converts UInt16 values.

UInt32Converter

Gets an object that converts UInt32 values.

UInt64Converter

Gets an object that converts UInt64 values.

UriConverter

Gets an object that converts Uri values.

VersionConverter

Gets an object that converts Version values.

Methods

CreateArrayInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TElement[]>)

Creates serialization metadata for an array.

CreateConcurrentQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to ConcurrentQueue<T>.

CreateConcurrentStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to ConcurrentStack<T>.

CreateDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to Dictionary<TKey,TValue>.

CreateIAsyncEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates serialization metadata for types assignable to IAsyncEnumerable<T>.

CreateICollectionInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to ICollection<T>.

CreateIDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IDictionary<TKey,TValue>.

CreateIDictionaryInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IDictionary.

CreateIEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IEnumerable<T>.

CreateIEnumerableInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IEnumerable.

CreateIListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IList<T>.

CreateIListInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IList.

CreateImmutableDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<KeyValuePair<TKey, TValue>>,TCollection>)

Creates metadata for ImmutableDictionary<TKey,TValue> and types assignable to IReadOnlyDictionary<TKey,TValue>.

CreateImmutableEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Func<IEnumerable<TElement>, TCollection>)

Creates metadata for non-dictionary immutable collection types.

CreateIReadOnlyDictionaryInfo<TCollection,TKey,TValue>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to IReadOnlyDictionary<TKey,TValue>.

CreateISetInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to ISet<T>.

CreateListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to List<T>.

CreateMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<Memory<TElement>>)

Creates serialization metadata for Memory<T>.

CreateObjectInfo<T>(JsonSerializerOptions, JsonObjectInfoValues<T>)

Creates metadata for a complex class or struct.

CreatePropertyInfo<T>(JsonSerializerOptions, JsonPropertyInfoValues<T>)

Creates metadata for a property or field.

CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to Queue<T>.

CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

Creates metadata for types assignable to Queue.

CreateReadOnlyMemoryInfo<TElement>(JsonSerializerOptions, JsonCollectionInfoValues<ReadOnlyMemory<TElement>>)

Creates serialization metadata for ReadOnlyMemory<T>.

CreateStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Creates metadata for types assignable to Stack<T>.

CreateStackInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

Creates metadata for types assignable to Stack.

CreateValueInfo<T>(JsonSerializerOptions, JsonConverter)

Creates metadata for a primitive or a type with a custom converter.

GetEnumConverter<T>(JsonSerializerOptions)

Creates a JsonConverter<T> instance that converts T values.

GetNullableConverter<T>(JsonSerializerOptions)

Creates a JsonConverter<T> instance that converts T?? values.

GetNullableConverter<T>(JsonTypeInfo<T>)

Creates a JsonConverter<T> instance that converts T?? values.

GetUnsupportedTypeConverter<T>()

Gets a type converter that throws a NotSupportedException.

Applies to