ImmutableList.ToImmutableList Yöntem

Tanım

Aşırı Yüklemeler

ToImmutableList<TSource>(IEnumerable<TSource>)

Bir diziyi numaralandırır ve içeriğinin sabit bir listesini oluşturur.

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

Oluşturucu koleksiyonunun geçerli içeriğinden sabit bir liste oluşturur.

ToImmutableList<TSource>(IEnumerable<TSource>)

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

Bir diziyi numaralandırır ve içeriğinin sabit bir listesini oluşturur.

C#
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);

Tür Parametreleri

TSource

Dizideki öğelerin türü.

Parametreler

source
IEnumerable<TSource>

Numaralandıracak sıra.

Döndürülenler

ImmutableList<TSource>

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

Şunlara uygulanır

.NET 9 ve diğer sürümler
Ürün Sürümler
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

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

Oluşturucu koleksiyonunun geçerli içeriğinden sabit bir liste oluşturur.

C#
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);

Tür Parametreleri

TSource

Listedeki öğelerin türü.

Parametreler

builder
ImmutableList<TSource>.Builder

Sabit listeyi oluşturmak için oluşturucu.

Döndürülenler

ImmutableList<TSource>

Oluşturucunun koleksiyonundaki geçerli içeriği içeren sabit bir liste.

Şunlara uygulanır

.NET 9 ve diğer sürümler
Ürün Sürümler
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9