System::Text::Json::Serialization::Converters::EnumConverter class

EnumConverter class

template<typename T>class EnumConverter : public System::Text::Json::Serialization::Converters::JsonPrimitiveConverter<T>

Methods

MethodDescription
EnumConverter(EnumConverterOptions, System::SharedPtr<JsonNamingPolicy>, System::SharedPtr<JsonSerializerOptions>)
GetSupportedJsonValueTypes(JsonNumberHandling) override
Read(Utf8JsonReader&, const System::TypeInfo&, System::SharedPtr<JsonSerializerOptions>) override
ReadAsPropertyNameCore(Utf8JsonReader&, const System::TypeInfo&, 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
WriteAsPropertyNameCore(System::SharedPtr<Utf8JsonWriter>, T, System::SharedPtr<JsonSerializerOptions>, bool) override

See Also