Επεξεργασία

Κοινή χρήση μέσω


ReadOnlyCollectionBuilder<T> Constructors

Definition

Overloads

ReadOnlyCollectionBuilder<T>()

Constructs a ReadOnlyCollectionBuilder<T>.

ReadOnlyCollectionBuilder<T>(IEnumerable<T>)

Constructs a ReadOnlyCollectionBuilder<T>, copying the contents of the given collection.

ReadOnlyCollectionBuilder<T>(Int32)

Constructs a ReadOnlyCollectionBuilder<T> with a given initial capacity. The contents are empty but builder will have reserved room for the given number of elements before any reallocations are required.

ReadOnlyCollectionBuilder<T>()

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

Applies to

ReadOnlyCollectionBuilder<T>(IEnumerable<T>)

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

Constructs a ReadOnlyCollectionBuilder<T>, copying the contents of the given collection.

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

Parameters

collection
IEnumerable<T>

Collection to copy elements from.

Applies to

ReadOnlyCollectionBuilder<T>(Int32)

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

Constructs a ReadOnlyCollectionBuilder<T> with a given initial capacity. The contents are empty but builder will have reserved room for the given number of elements before any reallocations are required.

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)

Parameters

capacity
Int32

Initial capacity.

Applies to