DelegatingEnumerable<TWrapped,TDeclared> 构造函数

定义

重载

DelegatingEnumerable<TWrapped,TDeclared>()

初始化一个 DelegatingEnumerable<TWrapped,TDeclared>

DelegatingEnumerable<TWrapped,TDeclared>(IEnumerable<TDeclared>, IWrapperProvider)

DelegatingEnumerable<TWrapped,TDeclared>使用原始IEnumerable<T>和包装器提供程序初始化 ,以包装单个元素。

DelegatingEnumerable<TWrapped,TDeclared>()

Source:
DelegatingEnumerable.cs
Source:
DelegatingEnumerable.cs
Source:
DelegatingEnumerable.cs
public:
 DelegatingEnumerable();
public DelegatingEnumerable ();
Public Sub New ()

注解

序列化需要 DataContractSerializer 此构造函数。

适用于

DelegatingEnumerable<TWrapped,TDeclared>(IEnumerable<TDeclared>, IWrapperProvider)

Source:
DelegatingEnumerable.cs
Source:
DelegatingEnumerable.cs
Source:
DelegatingEnumerable.cs

DelegatingEnumerable<TWrapped,TDeclared>使用原始IEnumerable<T>和包装器提供程序初始化 ,以包装单个元素。

public:
 DelegatingEnumerable(System::Collections::Generic::IEnumerable<TDeclared> ^ source, Microsoft::AspNetCore::Mvc::Formatters::Xml::IWrapperProvider ^ elementWrapperProvider);
public DelegatingEnumerable (System.Collections.Generic.IEnumerable<TDeclared> source, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider elementWrapperProvider);
new Microsoft.AspNetCore.Mvc.Formatters.Xml.DelegatingEnumerable<'Wrapped, 'Declared> : seq<'Declared> * Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider -> Microsoft.AspNetCore.Mvc.Formatters.Xml.DelegatingEnumerable<'Wrapped, 'Declared>
Public Sub New (source As IEnumerable(Of TDeclared), elementWrapperProvider As IWrapperProvider)

参数

source
IEnumerable<TDeclared>

IEnumerable<T> 从中获取枚举器的实例。

elementWrapperProvider
IWrapperProvider

用于包装单个元素的包装器提供程序。

适用于