ReadOnlyCollectionBuilder<'T>.ToReadOnlyCollection Method ()
.NET Framework (current version)
Creates a ReadOnlyCollection<'T> containing all of the elements of the ReadOnlyCollectionBuilder<'T>, avoiding copying the elements to the new array if possible. Resets the ReadOnlyCollectionBuilder<'T> after the ReadOnlyCollection<'T> has been created.
Assembly: System.Core (in System.Core.dll)
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<'T>A new instance of ReadOnlyCollection<'T>.
.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Available since 4.0
Silverlight
Available since 4.0
Show: