ImmutableArray.ToImmutableArray Metoda

Definicja

Przeciążenia

ToImmutableArray<T>(ReadOnlySpan<T>)

Tworzy niezmienną tablicę zawartości z określonych elementów.

ToImmutableArray<T>(Span<T>)

Konwertuje zakres na tablicę niezmienną.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Tworzy niezmienną tablicę z określonej kolekcji.

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Tworzy tablicę niezmienną na podstawie bieżącej zawartości tablicy konstruktora.

ToImmutableArray<T>(ReadOnlySpan<T>)

Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs

Tworzy niezmienną tablicę zawartości z określonych elementów.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> items);
static member ToImmutableArray : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

Parametry typu

T

Typ elementu na liście.

Parametry

items
ReadOnlySpan<T>

Elementy do przechowywania w tablicy.

Zwraca

Niezmienna tablica zawierająca elementy w przedziale.

Dotyczy

ToImmutableArray<T>(Span<T>)

Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs

Konwertuje zakres na tablicę niezmienną.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this Span<T> items);
static member ToImmutableArray : Span<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As Span(Of T)) As ImmutableArray(Of T)

Parametry typu

T

Typ elementu na liście.

Parametry

items
Span<T>

Elementy do przechowywania w tablicy.

Zwraca

Niezmienna tablica zawierająca elementy w przedziale.

Dotyczy

ToImmutableArray<TSource>(IEnumerable<TSource>)

Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs

Tworzy niezmienną tablicę z określonej kolekcji.

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);
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)

Parametry typu

TSource

Typ elementów zawartych w elem items.

Parametry

items
IEnumerable<TSource>

Kolekcja obiektów do skopiowania do tablicy niezmiennej.

Zwraca

ImmutableArray<TSource>

Niezmienna tablica zawierająca określoną kolekcję obiektów.

Dotyczy

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs
Źródło:
ImmutableArray.cs

Tworzy tablicę niezmienną na podstawie bieżącej zawartości tablicy konstruktora.

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);
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)

Parametry typu

TSource

Typ elementów zawartych w tablicy niezmiennej.

Parametry

builder
ImmutableArray<TSource>.Builder

Konstruktor tworzy niezmienną tablicę.

Zwraca

ImmutableArray<TSource>

Niezmienna tablica zawierająca bieżącą zawartość tablicy konstruktora.

Dotyczy