DelegatingEnumerator<TWrapped,TDeclared> 類別

定義

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 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)

類型參數

TWrapped

需要包裝個別元素的型別。

TDeclared

要包裝之專案的原始型別。

繼承
DelegatingEnumerator<TWrapped,TDeclared>
實作

建構函式

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

初始化 , DelegatingEnumerable<TWrapped,TDeclared> 它會列舉原始列舉值的專案,並使用提供的 IWrapperProvider 包裝它們。

屬性

Current

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 IWrapperProvider

方法

Dispose()

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 IWrapperProvider

MoveNext()

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 IWrapperProvider

Reset()

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 IWrapperProvider

明確介面實作

IEnumerator.Current

將專案的列舉委派給原始列舉值,並將專案包裝為提供的 IWrapperProvider

適用於