ImmutableHashSet.ToImmutableHashSet Metode

Definisi

Overload

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Menghitung urutan dan menghasilkan set hash yang tidak dapat diubah dari isinya.

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder)

Membuat set hash yang tidak dapat diubah dari konten set penyusun saat ini.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Menghitung urutan, menghasilkan set hash yang tidak dapat diubah dari kontennya, dan menggunakan perbandingan kesetaraan yang ditentukan untuk jenis yang ditetapkan.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs

Menghitung urutan dan menghasilkan set hash yang tidak dapat diubah dari isinya.

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

Jenis parameter

TSource

Jenis elemen dalam urutan .

Parameter

source
IEnumerable<TSource>

Urutan untuk menghitung.

Mengembalikan

ImmutableHashSet<TSource>

Set hash yang tidak dapat diubah yang berisi item dalam urutan yang ditentukan.

Berlaku untuk

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder)

Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs

Membuat set hash yang tidak dapat diubah dari konten set penyusun saat ini.

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

Jenis parameter

TSource

Jenis elemen dalam set hash.

Parameter

builder
ImmutableHashSet<TSource>.Builder

Penyusun untuk membuat set hash yang tidak dapat diubah.

Mengembalikan

ImmutableHashSet<TSource>

Set hash yang tidak dapat diubah yang berisi konten saat ini dalam set penyusun.

Berlaku untuk

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs
Sumber:
ImmutableHashSet.cs

Menghitung urutan, menghasilkan set hash yang tidak dapat diubah dari kontennya, dan menggunakan perbandingan kesetaraan yang ditentukan untuk jenis yang ditetapkan.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IEqualityComparer<TSource> ^ equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource> equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource>? equalityComparer);
static member ToImmutableHashSet : seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (source As IEnumerable(Of TSource), equalityComparer As IEqualityComparer(Of TSource)) As ImmutableHashSet(Of TSource)

Jenis parameter

TSource

Jenis elemen dalam urutan .

Parameter

source
IEnumerable<TSource>

Urutan untuk menghitung.

equalityComparer
IEqualityComparer<TSource>

Objek yang digunakan untuk membandingkan objek dalam set untuk kesetaraan.

Mengembalikan

ImmutableHashSet<TSource>

Set hash yang tidak dapat diubah yang berisi item dalam urutan yang ditentukan dan menggunakan perbandingan kesetaraan yang ditentukan.

Berlaku untuk