Share via


DelegatingEnumerator<TWrapped,TDeclared> Class

Definition

Delegates enumeration of elements to the original enumerator and wraps the items with the supplied IWrapperProvider.

generic <typename TWrapped, typename TDeclared>
public ref class DelegatingEnumerator : System::Collections::Generic::IEnumerator<TWrapped>
public class DelegatingEnumerator<TWrapped,TDeclared> : System.Collections.Generic.IEnumerator<TWrapped>
type DelegatingEnumerator<'Wrapped, 'Declared> = class
    interface IEnumerator<'Wrapped>
    interface IEnumerator
    interface IDisposable
Public Class DelegatingEnumerator(Of TWrapped, TDeclared)
Implements IEnumerator(Of TWrapped)

Type Parameters

TWrapped

The type to which the individual elements need to be wrapped to.

TDeclared

The original type of the element being wrapped.

Inheritance
DelegatingEnumerator<TWrapped,TDeclared>
Implements

Constructors

DelegatingEnumerator<TWrapped,TDeclared>(IEnumerator<TDeclared>, IWrapperProvider)

Initializes a DelegatingEnumerable<TWrapped,TDeclared> which enumerates over the elements of the original enumerator and wraps them using the supplied IWrapperProvider.

Properties

Current

Gets the element in the collection at the current position of the enumerator.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MoveNext()

Advances the enumerator to the next element of the collection.

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

Explicit Interface Implementations

IEnumerator.Current

Gets the element in the collection at the current position of the enumerator.

Applies to