ImmutableList.ToImmutableList Method (System.Collections.Immutable) (original) (raw)
- Reference
Definition
Namespace:
Assembly:
System.Collections.Immutable.dll
Package:
System.Collections.Immutable v10.0.0-preview.3.25171.5
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.
Overloads
ToImmutableList(IEnumerable)
Source:
Source:
Source:
Source:
Enumerates a sequence and produces an immutable list of its contents.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource>(this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableList : seq<'Source> -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableList(Of TSource)
Type Parameters
TSource
The type of the elements in the sequence.
Parameters
Returns
An immutable list that contains the items in the specified sequence.
Applies to
ToImmutableList(ImmutableList.Builder)
Source:
Source:
Source:
Source:
Creates an immutable list from the current contents of the builder's collection.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Immutable::ImmutableList<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource>(this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);
static member ToImmutableList : System.Collections.Immutable.ImmutableList<'Source>.Builder -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (builder As ImmutableList(Of TSource).Builder) As ImmutableList(Of TSource)
Type Parameters
TSource
The type of the elements in the list.
Parameters
Returns
An immutable list that contains the current contents in the builder's collection.