SkipList<T>.Enumerator Struct

Enumerates the elements of a SkipList<T>.

public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
Implements

Properties

NameDescription
CurrentGets the element in the skip list at the current position of the enumerator.
System.Collections.IEnumerator.Current

Gets the element in the skip list at the current position of the enumerator.

public readonly T Current { get; }

Property value

T

System.Collections.IEnumerator.Current

SkipList.cs
object? IEnumerator.Current { get; }

Property value

object?

No documentation is available.

Methods

NameDescription
Dispose()Releases all resources used by the enumerator.
MoveNext()Advances the enumerator to the next element of the skip list.
System.Collections.IEnumerator.Reset()

Dispose()

SkipList.cs

Releases all resources used by the enumerator.

public readonly void Dispose()

MoveNext()

SkipList.cs

Advances the enumerator to the next element of the skip list.

public bool MoveNext()

Returns

bool true if the enumerator was successfully advanced; otherwise, false.

System.Collections.IEnumerator.Reset()

SkipList.cs

No documentation is available.