JsonPathResult<TValue> Class
Represents the result of evaluating a JSONPath expression against a custom object model. Contains the ordered list of matched nodes.
public sealed class JsonPathResult<TValue> : IEnumerable<JsonPathMatch<TValue>>, IReadOnlyCollection<JsonPathMatch<TValue>>, IReadOnlyList<JsonPathMatch<TValue>>, IEnumerableType parameters
TValue- The node type used by the JSONPath navigator.
- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of elements in the collection. |
Count
JsonPathResult`1.csIndexers
| Name | Description |
|---|---|
| this[int] | Gets the element at the specified index in the read-only list. |
this[int]
JsonPathResult`1.csGets the element at the specified index in the read-only list.
public JsonPathMatch<TValue> this[int index] { get; }Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| System.Collections.IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
GetEnumerator()
JsonPathResult`1.csReturns an enumerator that iterates through the collection.
public IEnumerator<JsonPathMatch<TValue>> GetEnumerator()Returns
IEnumerator<JsonPathMatch<TValue>> An enumerator that can be used to iterate through the collection.
System.Collections.IEnumerable.GetEnumerator()
JsonPathResult`1.csReturns an enumerator that iterates through a collection.
IEnumerator IEnumerable.GetEnumerator()Returns
IEnumerator An IEnumerator object that can be used to iterate through the collection.