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

◆ Clear()

void System.Text.Json.Nodes.JsonObject.Clear ( )
inline

Definition at line 237 of file JsonObject.cs.

238 {
239 if (_jsonElement.HasValue)
240 {
241 _jsonElement = null;
242 }
243 else
244 {
245 if (_dictionary == null)
246 {
247 return;
248 }
249 foreach (JsonNode item in _dictionary.GetValueCollection())
250 {
252 }
254 }
255 }
JsonNode(JsonNodeOptions? options=null)
Definition JsonNode.cs:78
void DetachParent(JsonNode item)
JsonPropertyDictionary< JsonNode > _dictionary
Definition JsonObject.cs:80

References System.Text.Json.Nodes.JsonObject._dictionary, System.Text.Json.Nodes.JsonObject._jsonElement, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Text.Json.Nodes.JsonObject.DetachParent(), and System.item.