KeyedByTypeCollection<TItem> 构造函数

定义

初始化 KeyedByTypeCollection<TItem> 类的新实例。

重载

KeyedByTypeCollection<TItem>()

初始化 KeyedByTypeCollection<TItem> 类的新实例。

KeyedByTypeCollection<TItem>(IEnumerable<TItem>)

根据指定的对象枚举初始化 KeyedByTypeCollection<TItem> 类的新实例。

KeyedByTypeCollection<TItem>()

初始化 KeyedByTypeCollection<TItem> 类的新实例。

public:
 KeyedByTypeCollection();
public KeyedByTypeCollection ();
Public Sub New ()

适用于

KeyedByTypeCollection<TItem>(IEnumerable<TItem>)

根据指定的对象枚举初始化 KeyedByTypeCollection<TItem> 类的新实例。

public:
 KeyedByTypeCollection(System::Collections::Generic::IEnumerable<TItem> ^ items);
public KeyedByTypeCollection (System.Collections.Generic.IEnumerable<TItem> items);
new System.Collections.Generic.KeyedByTypeCollection<'Item> : seq<'Item> -> System.Collections.Generic.KeyedByTypeCollection<'Item>
Public Sub New (items As IEnumerable(Of TItem))

参数

items
IEnumerable<TItem>

泛型类型 IEnumerable<T>Object,用于初始化集合。

例外

itemsnull

适用于