Class IndexedEnumeratorResult<T>
- Namespace
- Garyon.Objects.Enumerators
- Assembly
- Garyon.dll
Represents an indexed enumerator result.
public record IndexedEnumeratorResult<T> : IEquatable<IndexedEnumeratorResult<T>>
Type Parameters
TThe type of the enumerator result.
- Inheritance
-
IndexedEnumeratorResult<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
IndexedEnumeratorResult(int, T)
Represents an indexed enumerator result.
public IndexedEnumeratorResult(int Index, T Current)
Parameters
IndexintThe index of the enumerator result.
CurrentTThe current enumerator result.
Properties
Current
The current enumerator result.
public T Current { get; init; }
Property Value
- T
Index
The index of the enumerator result.
public int Index { get; init; }
Property Value
Methods
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.