ImmutableList.Create Metoda

Definicja

Przeciążenia

Create<T>()

Tworzy pustą listę niezmienną.

Create<T>(ReadOnlySpan<T>)

Tworzy nową niezmienną listę zawierającą elementy z określonego zakresu elementów.

Create<T>(T)

Tworzy nową niezmienną listę zawierającą określony element.

Create<T>(T[])

Tworzy nową niezmienną listę zawierającą określoną tablicę elementów.

Create<T>()

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

Tworzy pustą listę niezmienną.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableList<T> ^ Create();
public static System.Collections.Immutable.ImmutableList<T> Create<T> ();
static member Create : unit -> System.Collections.Immutable.ImmutableList<'T>
Public Function Create(Of T) () As ImmutableList(Of T)

Parametry typu

T

Typ elementów, które mają być przechowywane w obiekcie .

Zwraca

Pusta lista niezmienna.

Dotyczy

Create<T>(ReadOnlySpan<T>)

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

Tworzy nową niezmienną listę zawierającą elementy z określonego zakresu elementów.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableList<T> ^ Create(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableList<T> Create<T> (ReadOnlySpan<T> items);
static member Create : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Create(Of T) (items As ReadOnlySpan(Of T)) As ImmutableList(Of T)

Parametry typu

T

Typ elementów przechowywanych przez kolekcję.

Parametry

items
ReadOnlySpan<T>

Zakres zawierający elementy do wstępnego wypełniania listy.

Zwraca

Nowa niezmienna lista zawierająca określone elementy.

Dotyczy

Create<T>(T)

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

Tworzy nową niezmienną listę zawierającą określony element.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableList<T> ^ Create(T item);
public static System.Collections.Immutable.ImmutableList<T> Create<T> (T item);
static member Create : 'T -> System.Collections.Immutable.ImmutableList<'T>
Public Function Create(Of T) (item As T) As ImmutableList(Of T)

Parametry typu

T

Typ elementów w obiekcie .

Parametry

item
T

Element do wstępnego wypełniania listy.

Zwraca

Nowa, która zawiera określony element.

Dotyczy

Create<T>(T[])

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

Tworzy nową niezmienną listę zawierającą określoną tablicę elementów.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableList<T> ^ Create(... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableList<T> Create<T> (params T[] items);
static member Create : 'T[] -> System.Collections.Immutable.ImmutableList<'T>
Public Function Create(Of T) (ParamArray items As T()) As ImmutableList(Of T)

Parametry typu

T

Typ elementów w obiekcie .

Parametry

items
T[]

Tablica zawierająca elementy do wstępnego wypełniania listy.

Zwraca

Nowa niezmienna lista zawierająca określone elementy.

Dotyczy