ReadOnlyCollectionBuilder<T> 构造函数

定义

重载

ReadOnlyCollectionBuilder<T>()

构造一个 ReadOnlyCollectionBuilder<T>

ReadOnlyCollectionBuilder<T>(IEnumerable<T>)

构造 ReadOnlyCollectionBuilder<T>,并复制给定集合的内容。

ReadOnlyCollectionBuilder<T>(Int32)

构造具有给定初始容量的 ReadOnlyCollectionBuilder<T>。 内容为空,但是在需要进行任何重新分配之前生成器将为给定数量的元素保留空间。

ReadOnlyCollectionBuilder<T>()

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

适用于

ReadOnlyCollectionBuilder<T>(IEnumerable<T>)

Source:
ReadOnlyCollectionBuilder.cs
Source:
ReadOnlyCollectionBuilder.cs
Source:
ReadOnlyCollectionBuilder.cs

构造 ReadOnlyCollectionBuilder<T>,并复制给定集合的内容。

public:
 ReadOnlyCollectionBuilder(System::Collections::Generic::IEnumerable<T> ^ collection);
public ReadOnlyCollectionBuilder (System.Collections.Generic.IEnumerable<T> collection);
new System.Runtime.CompilerServices.ReadOnlyCollectionBuilder<'T> : seq<'T> -> System.Runtime.CompilerServices.ReadOnlyCollectionBuilder<'T>
Public Sub New (collection As IEnumerable(Of T))

参数

collection
IEnumerable<T>

从其中复制元素的集合。

适用于

ReadOnlyCollectionBuilder<T>(Int32)

Source:
ReadOnlyCollectionBuilder.cs
Source:
ReadOnlyCollectionBuilder.cs
Source:
ReadOnlyCollectionBuilder.cs

构造具有给定初始容量的 ReadOnlyCollectionBuilder<T>。 内容为空,但是在需要进行任何重新分配之前生成器将为给定数量的元素保留空间。

public:
 ReadOnlyCollectionBuilder(int capacity);
public ReadOnlyCollectionBuilder (int capacity);
new System.Runtime.CompilerServices.ReadOnlyCollectionBuilder<'T> : int -> System.Runtime.CompilerServices.ReadOnlyCollectionBuilder<'T>
Public Sub New (capacity As Integer)

参数

capacity
Int32

初始容量。

适用于