Struct JEnumerable<T>
- Namespace
- Newtonsoft.Json.Linq
- Assembly
- Newtonsoft.Json.dll
Represents a collection of JToken objects.
public struct JEnumerable<T> : IJEnumerable<T>, IEnumerable<T>, IEnumerable where T : JToken
Type Parameters
T
The type of token
- Implements
-
IJEnumerable<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
JEnumerable(IEnumerable<T>)
Initializes a new instance of the JEnumerable<T> struct.
public JEnumerable(IEnumerable<T> enumerable)
Parameters
enumerable
IEnumerable<T>The enumerable.
Fields
Empty
An empty collection of JToken objects.
public static readonly JEnumerable<T> Empty
Field Value
- JEnumerable<T>
Properties
this[object]
Gets the IJEnumerable<T> with the specified key.
public IJEnumerable<JToken> this[object key] { get; }
Parameters
key
object
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
A IEnumerator<T> that can be used to iterate through the collection.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.