Table of Contents

Class IndexedEnumeratorResult<T>

Namespace
Garyon.Objects.Enumerators
Assembly
Garyon.dll

Represents an indexed enumerator result.

public record IndexedEnumeratorResult<T> : IEquatable<IndexedEnumeratorResult<T>>

Type Parameters

T

The 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

Index int

The index of the enumerator result.

Current T

The 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

int

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.