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.

ImmutableList::ToImmutableList<TSource> Method (IEnumerable<TSource>^)

 

Enumerates a sequence and produces an immutable list of its contents.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename TSource>
[ExtensionAttribute]
static ImmutableList<TSource>^ ToImmutableList(
	IEnumerable<TSource>^ source
)

Parameters

source
Type: System.Collections.Generic::IEnumerable<TSource>^

The sequence to enumerate.

Return Value

Type: System.Collections.Immutable::ImmutableList<TSource>^

An immutable list that contains the items in the specified sequence.

Type Parameters

TSource

The type of the elements in the sequence.

Return to top
Show:
© 2017 Microsoft