JsonMetadataServices Classe

Definição

Fornece ajudantes para criar e inicializar metadados para tipos serializáveis em JSON.

public ref class JsonMetadataServices abstract sealed
public static class JsonMetadataServices
type JsonMetadataServices = class
Public Class JsonMetadataServices
Herança
JsonMetadataServices

Observações

Esta API destina-se a ser utilizada pela saída do gerador de código-fonte System.Text.Json. Não deve ser chamado diretamente.

Propriedades

Name Description
BooleanConverter

Obtém um objeto que converte Boolean valores.

ByteArrayConverter

Obtém um objeto que converte os valores do array de bytes.

ByteConverter

Obtém um objeto que converte Byte valores.

CharConverter

Obtém um objeto que converte Char valores.

DateOnlyConverter

Devolve uma JsonConverter<T> instância que converte DateOnly valores.

DateTimeConverter

Obtém um objeto que converte DateTime valores.

DateTimeOffsetConverter

Obtém um objeto que converte DateTimeOffset valores.

DecimalConverter

Obtém um objeto que converte Decimal valores.

DoubleConverter

Obtém um objeto que converte Double valores.

GuidConverter

Obtém um objeto que converte Guid valores.

HalfConverter

Devolve uma JsonConverter<T> instância que converte Half valores.

Int128Converter

Devolve uma JsonConverter<T> instância que converte Int128 valores.

Int16Converter

Obtém um objeto que converte Int16 valores.

Int32Converter

Obtém um objeto que converte Int32 valores.

Int64Converter

Obtém um objeto que converte Int64 valores.

JsonArrayConverter

Obtém um objeto que converte JsonArray valores.

JsonDocumentConverter

Devolve uma JsonConverter<T> instância que converte JsonDocument valores.

JsonElementConverter

Recebe um conversor JSON que converte JsonElement valores.

JsonNodeConverter

Obtém um objeto que converte JsonNode valores.

JsonObjectConverter

Obtém um objeto que converte JsonObject valores.

JsonValueConverter

Obtém um objeto que converte JsonValue valores.

MemoryByteConverter

Devolve uma JsonConverter<T> instância que converte Memory<T> valores.

ObjectConverter

Obtém um objeto que converte Object valores.

ReadOnlyMemoryByteConverter

Devolve uma JsonConverter<T> instância que converte ReadOnlyMemory<T> valores.

SByteConverter

Obtém um objeto que converte SByte valores.

SingleConverter

Obtém um objeto que converte Single valores.

StringConverter

Obtém um objeto que converte String valores.

TimeOnlyConverter

Devolve uma JsonConverter<T> instância que converte TimeOnly valores.

TimeSpanConverter

Recebe um conversor JSON que converte TimeSpan valores.

UInt128Converter

Devolve uma JsonConverter<T> instância que converte UInt128 valores.

UInt16Converter

Obtém um objeto que converte UInt16 valores.

UInt32Converter

Obtém um objeto que converte UInt32 valores.

UInt64Converter

Obtém um objeto que converte UInt64 valores.

UriConverter

Obtém um objeto que converte Uri valores.

VersionConverter

Obtém um objeto que converte Version valores.

Métodos

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

Cria metadados de serialização para um array.

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

Cria metadados para tipos atribuíveis a ConcurrentQueue<T>.

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

Cria metadados para tipos atribuíveis a ConcurrentStack<T>.

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

Cria metadados para tipos atribuíveis a Dictionary<TKey,TValue>.

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

Cria metadados de serialização para tipos atribuíveis a IAsyncEnumerable<T>.

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

Cria metadados para tipos atribuíveis a ICollection<T>.

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

Cria metadados para tipos atribuíveis a IDictionary<TKey,TValue>.

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

Cria metadados para tipos atribuíveis a IDictionary.

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

Cria metadados para tipos atribuíveis a IEnumerable<T>.

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

Cria metadados para tipos atribuíveis a IEnumerable.

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

Cria metadados para tipos atribuíveis a IList<T>.

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

Cria metadados para tipos atribuíveis a IList.

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

Cria metadados para ImmutableDictionary<TKey,TValue> e tipos atribuíveis a IReadOnlyDictionary<TKey,TValue>.

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

Cria metadados para tipos de coleção imutáveis que não sejam dicionários.

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

Cria metadados para tipos atribuíveis a IReadOnlyDictionary<TKey,TValue>.

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

Fornece ajudantes para criar e inicializar metadados para tipos serializáveis em JSON.

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

Cria metadados para tipos atribuíveis a ISet<T>.

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

Cria metadados para tipos atribuíveis a List<T>.

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

Cria metadados de serialização para Memory<T>.

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

Cria metadados para uma classe ou estrutura complexa.

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

Cria metadados para uma propriedade ou campo.

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

Cria metadados para tipos atribuíveis a Queue<T>.

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

Cria metadados para tipos atribuíveis a Queue.

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

Cria metadados de serialização para ReadOnlyMemory<T>.

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

Cria metadados para tipos atribuíveis a Stack<T>.

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

Cria metadados para tipos atribuíveis a Stack.

CreateValueInfo<T>(JsonSerializerOptions, JsonConverter)

Cria metadados para uma primitiva ou um tipo com um conversor personalizado.

GetEnumConverter<T>(JsonSerializerOptions)

Cria uma JsonConverter<T> instância que converte T valores.

GetNullableConverter<T>(JsonSerializerOptions)

Cria uma JsonConverter<T> instância que converte T?? valores.

GetNullableConverter<T>(JsonTypeInfo<T>)

Cria uma JsonConverter<T> instância que converte T?? valores.

GetUnsupportedTypeConverter<T>()

Obtém um conversor de tipos que gera um NotSupportedException.

Aplica-se a