EnumeratorBase

Description

abstract class Tinman.Core.Collections.EnumeratorBase<T>

Derived from

IEnumerator<T>

Extended by

EmptyEnumerator sealed

Abstract base class for IEnumerator implementations.

Protected / Constructors

Enumerator​Base


protected constructor EnumeratorBase → ()

Creates a new instance of EnumeratorBase.

Protected / Methods

Do​Dispose


[EmptyBody]
protected virtual method DoDispose → ()

Performs cleanup, such as setting references to null.

This method will be called exactly once.

Do​Next


protected abstract method DoNext → ()

returns → bool

true if the enumeration has advanced to the next item,
false if there are no more items in the enumeration.

Advances to the next item.

The first call to this method advances to the first item. After returning false, this method will not be called again.