ReadOnlyCollectionBuilder<T> Constructor (Int32)

 

Constructs a ReadOnlyCollectionBuilder 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.

Namespace:   System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

public ReadOnlyCollectionBuilder(
	int capacity
)

Parameters

capacity
Type: System.Int32

Initial capacity.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: