DelegatingEnumerator<TWrapped,TDeclared> Constructor

Definition

Initializes a DelegatingEnumerable<TWrapped,TDeclared> which enumerates over the elements of the original enumerator and wraps them using the supplied IWrapperProvider.

public:
 DelegatingEnumerator(System::Collections::Generic::IEnumerator<TDeclared> ^ inner, Microsoft::AspNetCore::Mvc::Formatters::Xml::IWrapperProvider ^ wrapperProvider);
public DelegatingEnumerator (System.Collections.Generic.IEnumerator<TDeclared> inner, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider wrapperProvider);
public DelegatingEnumerator (System.Collections.Generic.IEnumerator<TDeclared> inner, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider? wrapperProvider);
new Microsoft.AspNetCore.Mvc.Formatters.Xml.DelegatingEnumerator<'Wrapped, 'Declared> : System.Collections.Generic.IEnumerator<'Declared> * Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider -> Microsoft.AspNetCore.Mvc.Formatters.Xml.DelegatingEnumerator<'Wrapped, 'Declared>
Public Sub New (inner As IEnumerator(Of TDeclared), wrapperProvider As IWrapperProvider)

Parameters

inner
IEnumerator<TDeclared>

The original enumerator.

wrapperProvider
IWrapperProvider

The wrapper provider to wrap individual elements.

Applies to