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

◆ GetValue< T >()

override T System.Text.Json.Nodes.JsonValue< TValue >.GetValue< T > ( )
inlinevirtualinherited

Reimplemented from System.Text.Json.Nodes.JsonNode.

Definition at line 382 of file JsonValue.cs.

383 {
384 TValue value = _value;
385 if (value is T)
386 {
387 object obj = value;
388 return (T)((obj is T) ? obj : null);
389 }
390 if (_value is JsonElement)
391 {
392 return ConvertJsonElement<T>();
393 }
395 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string NodeUnableToConvert
Definition SR.cs:294
Definition SR.cs:7

References System.Text.Json.Nodes.JsonValue< TValue >._value, System.Text.Json.Dictionary, System.SR.Format(), System.SR.NodeUnableToConvert, System.obj, System.T, and System.value.