JEnumerable Struct
Namespace: Stimulsoft.Base.Json.Linq
Represents a collection of JToken objects.
Inheritance
Implements: IJEnumerable
Constructors
| Constructor | Description |
|---|---|
| JEnumerable(IEnumerable |
Initializes a new instance of the JEnumerable{T} struct. |
JEnumerable(enumerable: IEnumerable
Initializes a new instance of the JEnumerable{T} struct.
Parameters
- enumerable (IEnumerable
) — The enumerable.
Methods
| Method | Returns | Description |
|---|---|---|
| Equals (+1 overloads) | bool | Determines whether the specified JEnumerable{T} is equal to this instance. |
| GetEnumerator | IEnumerator |
Returns an enumerator that iterates through the collection. |
| GetHashCode | int | Returns a hash code for this instance. |
Method Details
Equals
Equals(other: JEnumerable
Determines whether the specified JEnumerable{T} is equal to this instance.
Parameters
- other (JEnumerable
) — The JEnumerable{T} to compare with this instance.
Returns bool — true if the specified JEnumerable{T} is equal to this instance; otherwise, false.
Equals(obj: object): bool
Determines whether the specified Object is equal to this instance.
Parameters
- obj (object) — The Object to compare with this instance.
Returns bool — true if the specified Object is equal to this instance; otherwise, false.
GetEnumerator
GetEnumerator(): IEnumerator
Returns an enumerator that iterates through the collection.
Returns IEnumerator
GetHashCode
GetHashCode(): int
Returns a hash code for this instance.
Returns int — A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Fields
| Field | Type | Description |
|---|---|---|
| Empty | JEnumerable |
An empty collection of JToken objects. |