DelegatingEnumerator<TWrapped,TDeclared> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將專案的列舉委派給原始列舉值,並將專案包裝為提供的 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 。 |