Share via


ImmutableList.Create Yöntem

Tanım

Aşırı Yüklemeler

Create<T>()

Boş bir sabit liste oluşturur.

Create<T>(ReadOnlySpan<T>)

Belirtilen öğe aralığındaki öğeleri içeren yeni bir sabit liste oluşturur.

Create<T>(T)

Belirtilen öğeyi içeren yeni bir sabit liste oluşturur.

Create<T>(T[])

Belirtilen öğe dizisini içeren yeni bir sabit liste oluşturur.

Create<T>()

Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs

Boş bir sabit liste oluşturur.

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)

Tür Parametreleri

T

içinde depolanacak öğelerin türü.

Döndürülenler

Boş sabit bir liste.

Şunlara uygulanır

Create<T>(ReadOnlySpan<T>)

Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs

Belirtilen öğe aralığındaki öğeleri içeren yeni bir sabit liste oluşturur.

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)

Tür Parametreleri

T

Koleksiyon tarafından depolanan öğelerin türü.

Parametreler

items
ReadOnlySpan<T>

Listeyi önceden doldurulacak öğeleri içeren bir yayılma alanı.

Döndürülenler

Belirtilen öğeleri içeren yeni bir sabit liste.

Şunlara uygulanır

Create<T>(T)

Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs

Belirtilen öğeyi içeren yeni bir sabit liste oluşturur.

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)

Tür Parametreleri

T

içindeki öğelerin türü.

Parametreler

item
T

Listeyi önceden doldurulacak öğe.

Döndürülenler

Belirtilen öğeyi içeren yeni bir.

Şunlara uygulanır

Create<T>(T[])

Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs
Kaynak:
ImmutableList.cs

Belirtilen öğe dizisini içeren yeni bir sabit liste oluşturur.

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)

Tür Parametreleri

T

içindeki öğelerin türü.

Parametreler

items
T[]

Listeyi önceden doldurulacak öğeleri içeren bir dizi.

Döndürülenler

Belirtilen öğeleri içeren yeni bir sabit liste.

Şunlara uygulanır