Struct JEnumerable<T>
Represents a collection of JToken objects.
Implements
Inherited Members
Namespace: Bayat.Json.Linq
Assembly: Bayat.Json.Runtime.dll
Syntax
public struct JEnumerable<T> : IJEnumerable<T>, IEnumerable<T>, IEnumerable, IEquatable<JEnumerable<T>> where T : JToken
Type Parameters
Name | Description |
---|---|
T | The type of token |
Constructors
| Improve this Doc View SourceJEnumerable(IEnumerable<T>)
Initializes a new instance of the JEnumerable<T> struct.
Declaration
public JEnumerable(IEnumerable<T> enumerable)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | enumerable | The enumerable. |
Fields
| Improve this Doc View SourceEmpty
An empty collection of JToken objects.
Declaration
public static readonly JEnumerable<T> Empty
Field Value
Type | Description |
---|---|
JEnumerable<T> |
Properties
| Improve this Doc View SourceItem[Object]
Gets the IJEnumerable<T> with the specified key.
Declaration
public readonly IJEnumerable<JToken> this[object key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Object | key |
Property Value
Type | Description |
---|---|
IJEnumerable<JToken> |
Methods
| Improve this Doc View SourceEquals(JEnumerable<T>)
Determines whether the specified JEnumerable<T> is equal to this instance.
Declaration
public bool Equals(JEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
JEnumerable<T> | other | The JEnumerable<T> to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |