Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Deserialize() [13/16]

static ? object System.Text.Json.JsonSerializer.Deserialize ( this JsonElement element,
Type returnType,
JsonSerializerContext context )
inlinestatic

Definition at line 119 of file JsonSerializer.cs.

120 {
121 if (returnType == null)
122 {
123 throw new ArgumentNullException("returnType");
124 }
125 if (context == null)
126 {
127 throw new ArgumentNullException("context");
128 }
129 JsonTypeInfo typeInfo = GetTypeInfo(context, returnType);
130 return ReadUsingMetadata<object>(element, typeInfo);
131 }
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

References System.Text.Json.Dictionary, and System.Text.Json.JsonSerializer.GetTypeInfo().