JsonArrayOrDefault<TValue>
Namespace: SnowBank.Data.Json · struct
Implements: IReadOnlyList<TValue>, IEnumerable<TValue>, IEnumerable, IReadOnlyCollection<TValue>
Wrapper for a JsonArray that casts each element into an optional 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.
Any element that is null or missing will be in the returned array.
ToList
List<TValue> ToList()
Returns a List with all the elements, converted into type TValue.
Any element that is null or missing will be in the returned array.