ImmutableList.ToImmutableList Metode

Definisi

Overload

ToImmutableList<TSource>(IEnumerable<TSource>)

Menghitung urutan dan menghasilkan daftar konten yang tidak dapat diubah.

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

Membuat daftar yang tidak dapat diubah dari konten koleksi penyusun saat ini.

ToImmutableList<TSource>(IEnumerable<TSource>)

Sumber:
ImmutableList.cs
Sumber:
ImmutableList.cs
Sumber:
ImmutableList.cs

Menghitung urutan dan menghasilkan daftar konten yang tidak dapat diubah.

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)

Jenis parameter

TSource

Jenis elemen dalam urutan .

Parameter

source
IEnumerable<TSource>

Urutan untuk menghitung.

Mengembalikan

ImmutableList<TSource>

Daftar yang tidak dapat diubah yang berisi item dalam urutan yang ditentukan.

Berlaku untuk

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

Sumber:
ImmutableList.cs
Sumber:
ImmutableList.cs
Sumber:
ImmutableList.cs

Membuat daftar yang tidak dapat diubah dari konten koleksi penyusun saat ini.

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)

Jenis parameter

TSource

Jenis elemen dalam daftar.

Parameter

builder
ImmutableList<TSource>.Builder

Penyusun untuk membuat daftar yang tidak dapat diubah.

Mengembalikan

ImmutableList<TSource>

Daftar yang tidak dapat diubah yang berisi konten saat ini dalam koleksi penyusun.

Berlaku untuk