Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableArray::ToImmutableArray<TSource> Method (IEnumerable<TSource>^)

 

Creates an immutable array from the specified collection.

Namespace:   System.Collections.Immutable
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.

Return to top
Show:
© 2017 Microsoft