System::Text::Json::Serialization::Converters::CastingConverter class

CastingConverter class

template<typename T>class CastingConverter : public System::Text::Json::Serialization::JsonConverter<T>

Methods

MethodDescription
CastingConverter(System::SharedPtr<JsonConverterBase>)
get_ElementType() override
get_HandleNull() override
get_KeyType() override
get_NullableElementConverter() override
get_SourceConverterForCastingConverter() override
get_SupportsCreateObjectDelegate() override
GetSupportedJsonValueTypes(JsonNumberHandling) override
OnTryRead(Utf8JsonReader&, const System::TypeInfo&, System::SharedPtr<JsonSerializerOptions>, ReadStack&, T&) override
OnTryWrite(System::SharedPtr<Utf8JsonWriter>, T, System::SharedPtr<JsonSerializerOptions>, WriteStack&) override
Read(Utf8JsonReader&, const System::TypeInfo&, System::SharedPtr<JsonSerializerOptions>) override
ReadAsPropertyName(Utf8JsonReader&, const System::TypeInfo&, System::SharedPtr<JsonSerializerOptions>) override
ReadAsPropertyNameCore(Utf8JsonReader&, const System::TypeInfo&, System::SharedPtr<JsonSerializerOptions>) override
ReadNumberWithCustomHandling(Utf8JsonReader&, JsonNumberHandling, System::SharedPtr<JsonSerializerOptions>) override
SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
Write(System::SharedPtr<Utf8JsonWriter>, T, System::SharedPtr<JsonSerializerOptions>) override
WriteAsPropertyName(System::SharedPtr<Utf8JsonWriter>, T, System::SharedPtr<JsonSerializerOptions>) override
WriteAsPropertyNameCore(System::SharedPtr<Utf8JsonWriter>, T, System::SharedPtr<JsonSerializerOptions>, bool) override
WriteNumberWithCustomHandling(System::SharedPtr<Utf8JsonWriter>, T, JsonNumberHandling) override

See Also