Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.Serialization.JsonConverter< T > Class Template Referenceabstract

Public Member Functions

bool CanConvert (Type typeToConvert)
 
override bool CanConvert (Type typeToConvert)
 
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

 JsonConverter ()
 
virtual object CreateObject (JsonSerializerOptions options)
 
virtual void ReadElementAndSetProperty (object obj, string propertyName, ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
JsonPropertyInfo CreateJsonPropertyInfo ()
 
JsonParameterInfo CreateJsonParameterInfo ()
 
object ReadCoreAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
bool ShouldFlush (Utf8JsonWriter writer, ref WriteStack state)
 
bool TryReadAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state, out object value)
 
bool TryWriteAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, ref WriteStack state)
 
bool WriteCoreAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, ref WriteStack state)
 
void WriteAsPropertyNameCoreAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
 
virtual void Initialize (JsonSerializerOptions options, JsonTypeInfo jsonTypeInfo=null)
 
virtual void CreateInstanceForReferenceResolver (ref Utf8JsonReader reader, ref ReadStack state, JsonSerializerOptions options)
 
override object ReadCoreAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
T ReadCore (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
 
override bool WriteCoreAsObject (Utf8JsonWriter writer, object value, JsonSerializerOptions options, ref WriteStack state)
 
bool WriteCore (Utf8JsonWriter writer, in T value, JsonSerializerOptions options, ref WriteStack state)
 
 JsonConverter ()
 
override JsonPropertyInfo CreateJsonPropertyInfo ()
 
override JsonParameterInfo CreateJsonParameterInfo ()
 
override bool TryWriteAsObject (Utf8JsonWriter writer, object 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)
 
override bool TryReadAsObject (ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state, out object 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)
 
override void WriteAsPropertyNameCoreAsObject (Utf8JsonWriter writer, object 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

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

Static Private Member Functions

static bool IsNull (T value)
 

Detailed Description

Definition at line 118 of file JsonConverter.cs.


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