JsonArray<TValue>
Namespace: SnowBank.Data.Json · struct
Implements: IReadOnlyList<TValue>, IEnumerable<TValue>, IEnumerable, IReadOnlyCollection<TValue>
Wrapper for a JsonArray that casts each element into a required TValue.
Properties
Count
int Count { get; }
Item
TValue Item { get; }
TValue Item { get; }
Methods
GetEnumerator
Enumerator GetEnumerator()
Returns an enumerator that iterates through the array.
ToArray
TValue[] ToArray()
Returns an array with all the elements, converted into type TValue.
If any element is null or missing, an exception will be thrown.
ToList
List<TValue> ToList()
Returns a List with all the elements, converted into type TValue.
If any element is null or missing, an exception will be thrown.