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

◆ Deserialize() [9/16]

static ? object System.Text.Json.JsonSerializer.Deserialize ( string json,
Type returnType,
JsonSerializerContext context )
inlinestatic

Definition at line 1203 of file JsonSerializer.cs.

1204 {
1205 if (json == null)
1206 {
1207 throw new ArgumentNullException("json");
1208 }
1209 if (returnType == null)
1210 {
1211 throw new ArgumentNullException("returnType");
1212 }
1213 if (context == null)
1214 {
1215 throw new ArgumentNullException("context");
1216 }
1217 JsonTypeInfo typeInfo = GetTypeInfo(context, returnType);
1218 return ReadFromSpan<object>(json.AsSpan(), typeInfo);
1219 }
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

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