Table of Contents

Class ReadOnlyRange<T>

Namespace
Utils.Range
Assembly
Utils.dll

Represents a read-only range of elements in a list, supporting custom stepping and indexing.

public class ReadOnlyRange<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

The type of elements in the list.

Inheritance
ReadOnlyRange<T>
Implements
Inherited Members
Extension Methods

Properties

Count

Gets the number of elements in the range.

public int Count { get; }

Property Value

int

this[int]

Gets the element at the specified index within the range.

public T this[int index] { get; }

Parameters

index int

The index within the range.

Property Value

T

The element at the specified index.

Methods

GetEnumerator()

Returns an enumerator that iterates through the range.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

An enumerator for the range.