Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Theming.Json.JsonArray Class Referencesealed

Opaque extension array, preserving order and value types. More...

Inheritance diagram for GWG.WindowFramework.Theming.Json.JsonArray:
Collaboration diagram for GWG.WindowFramework.Theming.Json.JsonArray:

Public Member Functions

void Add (JsonNode value)
 Appends a referenced node; null becomes explicit JSON null.
IEnumerable< JsonNode > Children ()
 Enumerates array order through a read-only view, not a deep immutable copy.
override JsonNode DeepClone ()
 Copies this array and descendants, retaining element order.
Public Member Functions inherited from GWG.WindowFramework.Theming.Json.JsonNode
JsonNode DeepClone ()
 Creates an independently mutable data tree, retaining scalar types and order.
override string ToString ()
 Serializes compact JSON without changing this tree or writing files.
string ToString (JsonFormatting formatting)
 Serializes this data tree using the selected whitespace policy.

Properties

override JsonKind Type [get]
 Gets Array kind.
Properties inherited from GWG.WindowFramework.Theming.Json.JsonNode
virtual JsonNode this[string key] [get, set]
 Named object access; the base implementation throws when a subtype is not an object.
JsonKind Type [get]
 Gets this node's exact JSON kind; lexical integer and float kinds are distinct.

Private Attributes

readonly List< JsonNode > _items = new List<JsonNode>()

Additional Inherited Members

Static Public Member Functions inherited from GWG.WindowFramework.Theming.Json.JsonNode
static operator double (JsonNode node)
 Reads either numeric kind using invariant double parsing.
static operator float (JsonNode node)
 Converts a numeric scalar through double to float.
static operator int (JsonNode node)
 Reads a lexical integer within Int32 range; float/exponent kinds are not accepted.
static implicit operator JsonNode (bool value)
 Creates a boolean scalar without parsing text.
static implicit operator JsonNode (double value)
 Creates a finite floating scalar using invariant round-trip spelling.
static implicit operator JsonNode (float value)
 Creates a finite floating scalar using invariant round-trip spelling.
static implicit operator JsonNode (int value)
 Creates an invariant lexical integer scalar.
static implicit operator JsonNode (string value)
 Creates a string scalar; null produces an explicit JSON-null node.
static operator string (JsonNode node)
 Reads a string scalar, or null for absent/JSON-null input.
static string Quote (string value)
 Encodes a JSON string, including control characters and surrogate code units.

Detailed Description

Opaque extension array, preserving order and value types.

Member Function Documentation

◆ Add()

void GWG.WindowFramework.Theming.Json.JsonArray.Add ( JsonNode value)
inline

Appends a referenced node; null becomes explicit JSON null.

Parameters
valueRetained node; clone before adding to avoid shared mutable subtrees.

◆ Children()

IEnumerable< JsonNode > GWG.WindowFramework.Theming.Json.JsonArray.Children ( )
inline

Enumerates array order through a read-only view, not a deep immutable copy.

Returns
Stored node references; do not mutate collection during enumeration.

◆ DeepClone()

override JsonNode GWG.WindowFramework.Theming.Json.JsonArray.DeepClone ( )
inline

Copies this array and descendants, retaining element order.

Returns
Independent mutable array tree.

Field Documentation

◆ _items

readonly List<JsonNode> GWG.WindowFramework.Theming.Json.JsonArray._items = new List<JsonNode>()
private

Property Documentation

◆ Type

override JsonKind GWG.WindowFramework.Theming.Json.JsonArray.Type
get

Gets Array kind.