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

◆ Deserialize< TValue >() [11/16]

static ? TValue System.Text.Json.JsonSerializer.Deserialize< TValue > ( this JsonDocument document,
JsonSerializerOptions? options = null )
inlinestatic

Definition at line 30 of file JsonSerializer.cs.

31 {
32 if (document == null)
33 {
34 throw new ArgumentNullException("document");
35 }
36 JsonTypeInfo typeInfo = GetTypeInfo(options, typeof(TValue));
37 return ReadDocument<TValue>(document, typeInfo);
38 }
static TValue ReadDocument< TValue >(JsonDocument document, JsonTypeInfo jsonTypeInfo)
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

References System.Text.Json.Dictionary, System.Text.Json.JsonSerializer.GetTypeInfo(), System.options, and System.Text.Json.JsonSerializer.ReadDocument< TValue >().