Class JsonArray
Implements
System.ICloneable
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Subsembly.Json
Assembly: Subsembly.Json.dll
Syntax
public sealed class JsonArray : JsonValue, ICloneable, ICollection, IEnumerable
Constructors
JsonArray()
Creates a new, mutable JsonArray.
Declaration
public JsonArray()
JsonArray(IList<JsonValue>)
Creates a new JsonArray using a given collection.
Declaration
public JsonArray(IList<JsonValue> aValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<JsonValue> | aValue | Collection of values. This must not be |
JsonArray(String[])
Creates a new JsonArray initialized with the given string array.
Declaration
public JsonArray(string[] vsValues)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | vsValues | Array of strings that will be added to the newly created array. |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Value
Declaration
public IList<JsonValue> Value { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<JsonValue> |
Methods
Add(JsonValue)
Add another JSON data element to the end of this array.
Declaration
public void Add(JsonValue aValue)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | aValue |
AddRange(IEnumerable<JsonValue>)
Declaration
public void AddRange(IEnumerable<JsonValue> vJsonValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<JsonValue> | vJsonValues |
Parse(Byte[])
Declaration
public static JsonArray Parse(byte[] vbJson)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | vbJson |
Returns
Type | Description |
---|---|
JsonArray |
Parse(String)
Declaration
public static JsonArray Parse(string sJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sJson |
Returns
Type | Description |
---|---|
JsonArray |
ToArray<T>()
Declaration
public T[] ToArray<T>()
where T : JsonValue
Returns
Type | Description |
---|---|
T[] |
Type Parameters
Name | Description |
---|---|
T |
ToStringArray()
Declaration
public string[] ToStringArray()
Returns
Type | Description |
---|---|
System.String[] |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Declaration
void ICollection.CopyTo(Array v, int i)
Parameters
Type | Name | Description |
---|---|---|
System.Array | v | |
System.Int32 | i |
ICollection.IsSynchronized
Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type | Description |
---|---|
System.Boolean |
ICollection.SyncRoot
Declaration
object ICollection.SyncRoot { get; }
Returns
Type | Description |
---|---|
System.Object |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.ICloneable
System.Collections.ICollection
System.Collections.IEnumerable