ArraySegment<T>.Enumerator.IEnumerator.Current Property

Definition

Gets the element at the current position of the enumerator.

C#
object? System.Collections.IEnumerator.Current { get; }
C#
object System.Collections.IEnumerator.Current { get; }

Property Value

The element in the array segment at the current position of the enumerator.

Implements

Exceptions

The enumerator is positioned before the first element of the array segment or after the last element.

Remarks

This member is an explicit interface member implementation. It can be used only when the ArraySegment<T>.Enumerator instance is cast to an IEnumerator interface.

Applies to

Proizvod Verzije
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1