Skip to main content

DebuggingCollection<T>.DebuggingCollectionEnumerator<TInnerType>

A class in Root.Township, Alta.Utilities.

Enumerator for DebuggingCollection that tracks whether enumeration is under way, so the collection can log changes made while iterating.

Constructors​

MemberWhat it is
DebuggingCollectionEnumerator(IEnumerator<TInnerType> enumerator, Action enumerationFinishedCallback)Creates a DebuggingCollection from enumerator and enumerationFinishedCallback.

Fields​

2 private and internal fields
MemberWhat it is
private Action enumerationFinishedCallbackCalled when enumeration ends. The collection uses it to forget this enumerator.
private IEnumerator<TInnerType> internalEnumeratorThe wrapped collection's enumerator.

Properties​

MemberWhat it is
TInnerType Current { get; }The current item of the wrapped enumerator.
bool IsEnumerating { get; private set; }True until MoveNext returns false.
1 private and internal property
MemberWhat it is
private object System.Collections.IEnumerator.Current { get; }Non-generic Current.

Methods​

MemberWhat it is
void Dispose()Disposes the wrapped enumerator.
bool MoveNext()Advances the wrapped enumerator and calls the finished callback at the end.
void Reset()Resets the wrapped enumerator.

Used in​

Members of other types that take, return or hold a DebuggingCollectionEnumerator&lt;TInnerType>: