DelegatingEnumerator<TWrapped, TDeclared> Class¶
Summary¶
Delegates enumeration of elements to the original enumerator and wraps the items with the supplied [Microsoft.AspNet.Mvc.Xml.IWrapperProvider](Microsoft.AspNet.Mvc.Xml.IWrapperProvider.yml).
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.Xml.DelegatingEnumerator<TWrapped, TDeclared>
Syntax¶
public class DelegatingEnumerator<TWrapped, TDeclared> : IEnumerator<TWrapped>, IDisposable, IEnumerator
Constructors¶
-
DelegatingEnumerator
(System.Collections.Generic.IEnumerator<TDeclared>, Microsoft.AspNet.Mvc.Xml.IWrapperProvider)¶ Initializes a [Microsoft.AspNet.Mvc.Xml.DelegatingEnumerable`2](Microsoft.AspNet.Mvc.Xml.DelegatingEnumerable`2.yml) which enumerates over the elements of the original enumerator and wraps them using the supplied [Microsoft.AspNet.Mvc.Xml.IWrapperProvider](Microsoft.AspNet.Mvc.Xml.IWrapperProvider.yml).
Arguments: - inner (System.Collections.Generic.IEnumerator{{TDeclared}}) – The original enumerator.
- wrapperProvider (Microsoft.AspNet.Mvc.Xml.IWrapperProvider) – The wrapper provider to wrap individual elements.
public DelegatingEnumerator(IEnumerator<TDeclared> inner, IWrapperProvider wrapperProvider)
-
Methods¶
-
Microsoft.AspNet.Mvc.Xml.DelegatingEnumerator<TWrapped, TDeclared>.Dispose()
public void Dispose()
-
Microsoft.AspNet.Mvc.Xml.DelegatingEnumerator<TWrapped, TDeclared>.MoveNext()
Return type: System.Boolean public bool MoveNext()
-
Microsoft.AspNet.Mvc.Xml.DelegatingEnumerator<TWrapped, TDeclared>.Reset()
public void Reset()
-