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. |
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. |
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. |
|
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The System. |
Returns
Type | Description |
---|---|
System. |
|
Overrides
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System. |
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. |
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. |
An System. |