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

◆ Deserialize() [3/16]

static ? object System.Text.Json.JsonSerializer.Deserialize ( ReadOnlySpan< char > json,
Type returnType,
JsonSerializerContext context )
inlinestatic

Definition at line 1221 of file JsonSerializer.cs.

1222 {
1223 if (returnType == null)
1224 {
1225 throw new ArgumentNullException("returnType");
1226 }
1227 if (context == null)
1228 {
1229 throw new ArgumentNullException("context");
1230 }
1231 JsonTypeInfo typeInfo = GetTypeInfo(context, returnType);
1232 return ReadFromSpan<object>(json, typeInfo);
1233 }
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

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