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

◆ Deserialize() [12/16]

static ? object System.Text.Json.JsonSerializer.Deserialize ( this JsonDocument document,
Type returnType,
JsonSerializerOptions? options = null )
inlinestatic

Definition at line 41 of file JsonSerializer.cs.

42 {
43 if (document == null)
44 {
45 throw new ArgumentNullException("document");
46 }
47 if (returnType == null)
48 {
49 throw new ArgumentNullException("returnType");
50 }
52 return ReadDocument<object>(document, typeInfo);
53 }
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

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