ImmutableArray.ToImmutableArray Methode
Definition
Überlädt
ToImmutableArray<TSource>(IEnumerable<TSource>) |
Erstellt ein unveränderliches Array aus der angegebenen Auflistung.Creates an immutable array from the specified collection. |
ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder) |
Erstellt ein unveränderliches Array aus dem aktuellen Inhalt des Arrays des Generators.Creates an immutable array from the current contents of the builder's array. |
ToImmutableArray<TSource>(IEnumerable<TSource>)
Erstellt ein unveränderliches Array aus der angegebenen Auflistung.Creates an immutable array from the specified collection.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableArray<TSource> ToImmutableArray(System::Collections::Generic::IEnumerable<TSource> ^ items);
public static System.Collections.Immutable.ImmutableArray<TSource> ToImmutableArray<TSource> (this System.Collections.Generic.IEnumerable<TSource> items);
public static System.Collections.Immutable.ImmutableArray<TSource>? ToImmutableArray<TSource> (this System.Collections.Generic.IEnumerable<TSource> items);
static member ToImmutableArray : seq<'Source> -> System.Collections.Immutable.ImmutableArray<'Source>
<Extension()>
Public Function ToImmutableArray(Of TSource) (items As IEnumerable(Of TSource)) As ImmutableArray(Of TSource)
Typparameter
- TSource
Der Typ der in items
enthaltenen Elemente.The type of elements contained in items
.
Parameter
- items
- IEnumerable<TSource>
Die Auflistung von Objekten, die in das unveränderliche Array kopiert werden sollen.The collection of objects to copy to the immutable array.
Gibt zurück
- ImmutableArray<TSource>
Ein unveränderliches Array, das die angegebene Auflistung von Objekten enthält.An immutable array that contains the specified collection of objects.
Gilt für:
ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)
Erstellt ein unveränderliches Array aus dem aktuellen Inhalt des Arrays des Generators.Creates an immutable array from the current contents of the builder's array.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableArray<TSource> ToImmutableArray(System::Collections::Immutable::ImmutableArray<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableArray<TSource>? ToImmutableArray<TSource> (this System.Collections.Immutable.ImmutableArray<TSource>.Builder builder);
public static System.Collections.Immutable.ImmutableArray<TSource> ToImmutableArray<TSource> (this System.Collections.Immutable.ImmutableArray<TSource>.Builder builder);
static member ToImmutableArray : System.Collections.Immutable.ImmutableArray<'Source>.Builder -> System.Collections.Immutable.ImmutableArray<'Source>
<Extension()>
Public Function ToImmutableArray(Of TSource) (builder As ImmutableArray(Of TSource).Builder) As ImmutableArray(Of TSource)
Typparameter
- TSource
Der Typ der Elemente, die im unveränderlichen Array enthalten sind.The type of elements contained in the immutable array.
Parameter
- builder
- ImmutableArray<TSource>.Builder
Der Generator, aus dem das unveränderliche Array erstellt werden soll.The builder to create the immutable array from.
Gibt zurück
- ImmutableArray<TSource>
Ein unveränderliches Array, das den aktuellen Inhalt des Arrays des Generators enthält.An immutable array that contains the current contents of the builder's array.