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

◆ Create< T >() [1/2]

static ? JsonValue System.Text.Json.Nodes.JsonValue< TValue >.Create< T > ( T? value,
JsonNodeOptions? options = null )
inlinestaticinherited

Definition at line 284 of file JsonValue.cs.

285 {
286 if (value == null)
287 {
288 return null;
289 }
290 if (value is JsonElement)
291 {
292 object obj = value;
293 JsonElement element = (JsonElement)((obj is JsonElement) ? obj : null);
294 if (element.ValueKind == JsonValueKind.Null)
295 {
296 return null;
297 }
300 }
302 }
static void VerifyJsonElementIsNotArrayOrObject(ref JsonElement element)
Definition JsonValue.cs:337

References System.Text.Json.Dictionary, System.Text.Json.Serialization.Metadata.JsonMetadataServices.JsonElementConverter, System.obj, System.options, System.value, System.Text.Json.JsonElement.ValueKind, and System.Text.Json.Nodes.JsonValue< TValue >.VerifyJsonElementIsNotArrayOrObject().