DelegatingEnumerator<TWrapped,TDeclared> 類別

定義

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

C#
public class DelegatingEnumerator<TWrapped,TDeclared> : System.Collections.Generic.IEnumerator<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

適用於

產品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0