ImmutableList.ToImmutableList Methode
Definition
Überlädt
ToImmutableList<TSource>(IEnumerable<TSource>) |
Listet eine Sequenz auf und erzeugt eine unveränderliche Liste ihrer Inhalte.Enumerates a sequence and produces an immutable list of its contents. |
ToImmutableList<TSource>(ImmutableList<TSource>.Builder) |
Erstellt eine unveränderliche Liste aus dem aktuellen Inhalt der Sammlung des Generators.Creates an immutable list from the current contents of the builder's collection. |
ToImmutableList<TSource>(IEnumerable<TSource>)
Listet eine Sequenz auf und erzeugt eine unveränderliche Liste ihrer Inhalte.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)
Typparameter
- TSource
Der Typ der Elemente in der Sequenz.The type of the elements in the sequence.
Parameter
- source
- IEnumerable<TSource>
Die Sequenz, die aufgelistet werden soll.The sequence to enumerate.
Gibt zurück
- ImmutableList<TSource>
Eine unveränderliche Liste, die die Elemente in der angegebenen Sequenz enthält.An immutable list that contains the items in the specified sequence.
Gilt für:
ToImmutableList<TSource>(ImmutableList<TSource>.Builder)
Erstellt eine unveränderliche Liste aus dem aktuellen Inhalt der Sammlung des Generators.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)
Typparameter
- TSource
Der Typ der in der Auflistung enthaltenen ElementeThe type of the elements in the list.
Parameter
- builder
- ImmutableList<TSource>.Builder
Der Generator, aus dem die unveränderliche Liste erstellt werden soll.The builder to create the immutable list from.
Gibt zurück
- ImmutableList<TSource>
Eine unveränderliche Liste, die den aktuellen Inhalt der Sammlung des Generators enthält.An immutable list that contains the current contents in the builder's collection.