DelegatingEnumerator<TWrapped,TDeclared> Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Deleguje výčet prvků na původní enumerátor a zabalí položky se zadaným 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)
Parametry typu
- TWrapped
Typ, do kterého musí být jednotlivé prvky zabalené.
- TDeclared
Původní typ zalomeného prvku.
- Dědičnost
-
DelegatingEnumerator<TWrapped,TDeclared>
- Implementuje
Konstruktory
| DelegatingEnumerator<TWrapped,TDeclared>(IEnumerator<TDeclared>, IWrapperProvider) |
Inicializuje výčet DelegatingEnumerable<TWrapped,TDeclared> prvků původního enumerátoru a zabalí je pomocí zadaného IWrapperProvider. |
Vlastnosti
| Current | Gets the element in the collection at the current position of the enumerator. |
Metody
| 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. |
Explicitní implementace rozhraní
| IEnumerator.Current | Gets the element in the collection at the current position of the enumerator. |