ImmutableArray::ToImmutableArray<TSource> Method (IEnumerable<TSource>^)
Creates an immutable array from the specified collection.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: generic<typename TSource> [ExtensionAttribute] static ImmutableArray<TSource> ToImmutableArray( IEnumerable<TSource>^ items )
Parameters
- items
-
Type:
System.Collections.Generic::IEnumerable<TSource>^
The collection of objects to copy to the immutable array.
Return Value
Type: System.Collections.Immutable::ImmutableArray<TSource>An immutable array that contains the specified collection of objects.
Type Parameters
- TSource
The type of elements contained in items.
Show: