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

◆ Deserialize() [11/16]

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

Definition at line 68 of file JsonSerializer.cs.

69 {
70 if (document == null)
71 {
72 throw new ArgumentNullException("document");
73 }
74 if (returnType == null)
75 {
76 throw new ArgumentNullException("returnType");
77 }
78 if (context == null)
79 {
80 throw new ArgumentNullException("context");
81 }
82 JsonTypeInfo typeInfo = GetTypeInfo(context, returnType);
83 return ReadDocument<object>(document, typeInfo);
84 }
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

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