Compartir a través de


ReadOnlyCollectionBuilder<T> Constructor (Int32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub New ( _
    capacity As Integer _
)
public ReadOnlyCollectionBuilder(
    int capacity
)

Parameters

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.