Show / Hide Table of Contents

Struct SingletonList<T>.Enumerator

Represents an enumerator over the collection containing a single element.

Implements
IEnumerator<SingletonList<T>.Enumerator, T>
IResettable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Collections.Specialized
Assembly: DotNext.dll
Syntax
public struct SingletonList<T>.Enumerator : IEnumerator<SingletonList<T>.Enumerator, T>, IResettable

Properties

View Source

Current

Gets the current element.

Declaration
public readonly T Current { get; }
Property Value
Type Description
T

Methods

View Source

MoveNext()

Advances the position of the enumerator to the next element.

Declaration
public bool MoveNext()
Returns
Type Description
bool

true if the enumerator advanced successfully; otherwise, false.

View Source

Reset()

Resets state of this enumerator.

Declaration
public void Reset()

Implements

IEnumerator<TSelf, T>
IResettable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾