Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.JsonSerializerOptions Class Referencesealed

Classes

class  TrackedOptionsInstances
 

Public Member Functions

JsonConverter GetConverter (Type typeToConvert)
 
 JsonSerializerOptions ()
 
 JsonSerializerOptions (JsonSerializerOptions options)
 
 JsonSerializerOptions (JsonSerializerDefaults defaults)
 
void AddContext< TContext > ()
 

Package Functions

JsonConverter DetermineConverter (Type parentClassType, Type runtimePropertyType, MemberInfo memberInfo)
 
JsonConverter GetConverterInternal (Type typeToConvert)
 
bool TryGetDefaultSimpleConverter (Type typeToConvert, [NotNullWhen(true)] out JsonConverter converter)
 
void InitializeForReflectionSerializer ()
 
JsonTypeInfo GetOrAddClass (Type type)
 
JsonTypeInfo GetClassFromContextOrCreate (Type type)
 
JsonTypeInfo GetOrAddClassForRootType (Type type)
 
bool TryGetClass (Type type, [NotNullWhen(true)] out JsonTypeInfo jsonTypeInfo)
 
bool TypeIsCached (Type type)
 
void ClearClasses ()
 
JsonDocumentOptions GetDocumentOptions ()
 
JsonNodeOptions GetNodeOptions ()
 
JsonReaderOptions GetReaderOptions ()
 
JsonWriterOptions GetWriterOptions ()
 
void VerifyMutable ()
 

Static Package Functions

static Attribute GetAttributeThatCanHaveMultiple (Type classType, Type attributeType)
 

Package Attributes

JsonSerializerContext _context
 
ReferenceHandlingStrategy ReferenceHandlingStrategy
 

Static Package Attributes

static readonly JsonSerializerOptions s_defaultOptions = new JsonSerializerOptions()
 

Properties

IList< JsonConverterConverters [get]
 
JsonTypeInfo_lastClass [get, set]
 
bool AllowTrailingCommas [get, set]
 
int DefaultBufferSize [get, set]
 
JavaScriptEncoderEncoder [get, set]
 
JsonNamingPolicyDictionaryKeyPolicy [get, set]
 
bool IgnoreNullValues [get, set]
 
JsonIgnoreCondition DefaultIgnoreCondition [get, set]
 
JsonNumberHandling NumberHandling [get, set]
 
bool IgnoreReadOnlyProperties [get, set]
 
bool IgnoreReadOnlyFields [get, set]
 
bool IncludeFields [get, set]
 
int MaxDepth [get, set]
 
int EffectiveMaxDepth = 64 [get, private set]
 
JsonNamingPolicyPropertyNamingPolicy [get, set]
 
bool PropertyNameCaseInsensitive [get, set]
 
JsonCommentHandling ReadCommentHandling [get, set]
 
JsonUnknownTypeHandling UnknownTypeHandling [get, set]
 
bool WriteIndented [get, set]
 
ReferenceHandlerReferenceHandler [get, set]
 
MemberAccessor MemberAccessorStrategy [get]
 
bool IsInitializedForReflectionSerializer [get, set]
 

Private Member Functions

void RootBuiltInConverters ()
 
JsonConverter GetConverterFromAttribute (JsonConverterAttribute converterAttribute, Type typeToConvert, Type classTypeAttributeIsOn, MemberInfo memberInfo)
 

Static Private Member Functions

static Dictionary< Type, JsonConverterGetDefaultSimpleConverters ()
 
static Attribute GetAttributeThatCanHaveMultiple (Type classType, Type attributeType, MemberInfo memberInfo)
 
static Attribute GetAttributeThatCanHaveMultiple (Type attributeType, Type classType, MemberInfo memberInfo, object[] attributes)
 
static void TrackOptionsInstance (JsonSerializerOptions options)
 

Private Attributes

readonly ConcurrentDictionary< Type, JsonConverter_converters = new ConcurrentDictionary<Type, JsonConverter>()
 
readonly ConcurrentDictionary< Type, JsonTypeInfo_classes = new ConcurrentDictionary<Type, JsonTypeInfo>()
 
Func< Type, JsonSerializerOptions, JsonTypeInfo_typeInfoCreationFunc
 
MemberAccessor _memberAccessorStrategy
 
JsonNamingPolicy _dictionaryKeyPolicy
 
JsonNamingPolicy _jsonPropertyNamingPolicy
 
JsonCommentHandling _readCommentHandling
 
ReferenceHandler _referenceHandler
 
JavaScriptEncoder _encoder
 
JsonIgnoreCondition _defaultIgnoreCondition
 
JsonNumberHandling _numberHandling
 
JsonUnknownTypeHandling _unknownTypeHandling
 
int _defaultBufferSize = 16384
 
int _maxDepth
 
bool _allowTrailingCommas
 
bool _haveTypesBeenCreated
 
bool _ignoreNullValues
 
bool _ignoreReadOnlyProperties
 
bool _ignoreReadonlyFields
 
bool _includeFields
 
bool _propertyNameCaseInsensitive
 
bool _writeIndented
 

Static Private Attributes

static Dictionary< Type, JsonConverters_defaultSimpleConverters
 
static JsonConverter[] s_defaultFactoryConverters
 

Detailed Description

Definition at line 16 of file JsonSerializerOptions.cs.


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