Udostępnij za pośrednictwem


JsonMetadataServices.GetNullableConverter Metoda

Definicja

Przeciążenia

GetNullableConverter<T>(JsonSerializerOptions)

JsonConverter<T> Tworzy wystąpienie, które konwertuje T?? wartości.

GetNullableConverter<T>(JsonTypeInfo<T>)

JsonConverter<T> Tworzy wystąpienie, które konwertuje T?? wartości.

GetNullableConverter<T>(JsonSerializerOptions)

Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs

JsonConverter<T> Tworzy wystąpienie, które konwertuje T?? wartości.

public:
generic <typename T>
 where T : value class static System::Text::Json::Serialization::JsonConverter<Nullable<T>> ^ GetNullableConverter(System::Text::Json::JsonSerializerOptions ^ options);
public static System.Text.Json.Serialization.JsonConverter<T?> GetNullableConverter<T> (System.Text.Json.JsonSerializerOptions options) where T : struct;
static member GetNullableConverter : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.JsonConverter<Nullable<'T>> (requires 'T : struct)
Public Shared Function GetNullableConverter(Of T As Structure) (options As JsonSerializerOptions) As JsonConverter(Of Nullable(Of T))

Parametry typu

T

Definicja ogólna bazowego typu dopuszczalnego wartości null.

Parametry

options
JsonSerializerOptions

Element JsonSerializerOptions do użycia do serializacji i deserializacji.

Zwraca

JsonConverter<T> Wystąpienie, które konwertuje T?? wartości

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy

GetNullableConverter<T>(JsonTypeInfo<T>)

Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs
Źródło:
JsonMetadataServices.Converters.cs

JsonConverter<T> Tworzy wystąpienie, które konwertuje T?? wartości.

public:
generic <typename T>
 where T : value class static System::Text::Json::Serialization::JsonConverter<Nullable<T>> ^ GetNullableConverter(System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ underlyingTypeInfo);
public static System.Text.Json.Serialization.JsonConverter<T?> GetNullableConverter<T> (System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> underlyingTypeInfo) where T : struct;
static member GetNullableConverter : System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T (requires 'T : struct)> -> System.Text.Json.Serialization.JsonConverter<Nullable<'T>> (requires 'T : struct)
Public Shared Function GetNullableConverter(Of T As Structure) (underlyingTypeInfo As JsonTypeInfo(Of T)) As JsonConverter(Of Nullable(Of T))

Parametry typu

T

Definicja ogólna bazowego typu dopuszczalnego wartości null.

Parametry

underlyingTypeInfo
JsonTypeInfo<T>

Metadane serializacji dla bazowego typu dopuszczalnego wartości null.

Zwraca

JsonConverter<T> Wystąpienie, które konwertuje T?? wartości

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy