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

◆ Create()

static ? JsonObject System.Text.Json.Nodes.JsonObject.Create ( JsonElement element,
JsonNodeOptions? options = null )
inlinestatic

Definition at line 124 of file JsonObject.cs.

125 {
126 if (element.ValueKind == JsonValueKind.Null)
127 {
128 return null;
129 }
130 if (element.ValueKind == JsonValueKind.Object)
131 {
132 return new JsonObject(element, options);
133 }
135 }
static string NodeElementWrongType
Definition SR.cs:286
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
JsonObject(JsonNodeOptions? options=null)

References System.Text.Json.Nodes.JsonObject.JsonObject(), System.SR.Format(), System.SR.NodeElementWrongType, System.options, and System.Text.Json.JsonElement.ValueKind.