Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.Serialization.JsonStringEnumConverter Class Reference

Public Member Functions

 JsonStringEnumConverter ()
 
 JsonStringEnumConverter (JsonNamingPolicy? namingPolicy=null, bool allowIntegerValues=true)
 
override bool CanConvert (Type typeToConvert)
 
override JsonConverter CreateConverter (Type typeToConvert, JsonSerializerOptions options)
 
TRead (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
 
void Write (Utf8JsonWriter writer, T value, JsonSerializerOptions options)
 
virtual T ReadAsPropertyName (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
 
virtual void WriteAsPropertyName (Utf8JsonWriter writer, T value, JsonSerializerOptions options)
 

Package Functions

override JsonPropertyInfo CreateJsonPropertyInfo ()
 
override JsonParameterInfo CreateJsonParameterInfo ()
 
JsonConverter GetConverterInternal (Type typeToConvert, JsonSerializerOptions options)
 
override object ReadCoreAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
override bool TryReadAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state, out object value)
 
override bool TryWriteAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, ref WriteStack state)
 
override bool WriteCoreAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, ref WriteStack state)
 
override void WriteAsPropertyNameCoreAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
 
virtual object CreateObject (JsonSerializerOptions options)
 
virtual void ReadElementAndSetProperty (object obj, string propertyName, ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
bool ShouldFlush (Utf8JsonWriter writer, ref WriteStack state)
 
virtual void Initialize (JsonSerializerOptions options, JsonTypeInfo jsonTypeInfo=null)
 
virtual void CreateInstanceForReferenceResolver (ref Utf8JsonReader reader, ref ReadStack state, JsonSerializerOptions options)
 
T ReadCore (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
bool WriteCore (Utf8JsonWriter writer, in T value, JsonSerializerOptions options, ref WriteStack state)
 
virtual bool OnTryWrite (Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
 
virtual bool OnTryRead (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, ref ReadStack state, out T value)
 
bool TryRead (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, ref ReadStack state, out T value)
 
bool TryWrite (Utf8JsonWriter writer, in T value, JsonSerializerOptions options, ref WriteStack state)
 
bool TryWriteDataExtensionProperty (Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
 
void VerifyRead (JsonTokenType tokenType, int depth, long bytesConsumed, bool isValueConverter, ref Utf8JsonReader reader)
 
void VerifyWrite (int originalDepth, Utf8JsonWriter writer)
 
virtual T ReadAsPropertyNameCore (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
 
virtual void WriteAsPropertyNameCore (Utf8JsonWriter writer, T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
 
virtual T ReadNumberWithCustomHandling (ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
 
virtual void WriteNumberWithCustomHandling (Utf8JsonWriter writer, T value, JsonNumberHandling handling)
 

Static Package Functions

static bool SingleValueReadWithReadAhead (ConverterStrategy converterStrategy, ref Utf8JsonReader reader, ref ReadStack state)
 
static bool DoSingleValueReadWithReadAhead (ref Utf8JsonReader reader, ref ReadStack state)
 

Package Attributes

bool IsInternalConverterForNumberType
 

Properties

override ConverterStrategy ConverterStrategy [get]
 
override? Type KeyType [get]
 
override? Type ElementType [get]
 
override Type TypeToConvert [get]
 
bool CanUseDirectReadOrWrite [get, set]
 
virtual bool CanHaveIdMetadata [get]
 
bool CanBePolymorphic [get, set]
 
bool IsValueType [get, set]
 
bool IsInternalConverter [get, set]
 
virtual Type RuntimeType [get]
 
virtual bool ConstructorIsParameterized [get]
 
ConstructorInfoConstructorInfo [get, set]
 
virtual bool RequiresDynamicMemberAccessors [get]
 
virtual bool HandleNull [get]
 
bool HandleNullOnRead [get, private set]
 
bool HandleNullOnWrite [get, private set]
 
bool CanBeNull [get]
 

Static Private Member Functions

static bool IsNull (T value)
 

Private Attributes

readonly JsonNamingPolicy _namingPolicy
 
readonly EnumConverterOptions _converterOptions
 

Detailed Description

Definition at line 5 of file JsonStringEnumConverter.cs.


The documentation for this class was generated from the following file: