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

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

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableList : seq<'Source> -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableList(Of TSource)

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

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

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

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Immutable::ImmutableList<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);
static member ToImmutableList : System.Collections.Immutable.ImmutableList<'Source>.Builder -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (builder As ImmutableList(Of TSource).Builder) As ImmutableList(Of TSource)

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