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

GitHub

View on GitHub

Microsoft.AspNet.Mvc.Xml.DelegatingEnumerator<TWrapped, TDeclared>

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:
public DelegatingEnumerator(IEnumerator<TDeclared> inner, IWrapperProvider wrapperProvider)

Properties

Current()
Return type:TWrapped
public TWrapped Current { get; }
Current()
Return type:System.Object
object IEnumerator.Current { get; }

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()