ReadOnlyCollectionBuilder<T>.ToReadOnlyCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
System::Collections::ObjectModel::ReadOnlyCollection<T> ^ ToReadOnlyCollection();
public System.Collections.ObjectModel.ReadOnlyCollection<T> ToReadOnlyCollection ();
member this.ToReadOnlyCollection : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Function ToReadOnlyCollection () As ReadOnlyCollection(Of T)
Returns
A new instance of ReadOnlyCollection<T>.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.