ReadOnlyCollection.CreateCollection<T>(ReadOnlySpan<T>) 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.
public:
generic <typename T>
static System::Collections::ObjectModel::ReadOnlyCollection<T> ^ CreateCollection(ReadOnlySpan<T> values);
public static System.Collections.ObjectModel.ReadOnlyCollection<T> CreateCollection<T>(scoped ReadOnlySpan<T> values);
static member CreateCollection : ReadOnlySpan<'T> -> System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Shared Function CreateCollection(Of T) (values As ReadOnlySpan(Of T)) As ReadOnlyCollection(Of T)
Type Parameters
- T
Parameters
- values
- ReadOnlySpan<T>