ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet Method

定義

オーバーロード

ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>)

シーケンスを列挙し、その内容の変更できないハッシュ セットを生成します。Enumerates a sequence and produces an immutable hash set of its contents.

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

シーケンスを列挙し、その内容の変更できないハッシュ セットを生成して、指定された等値比較子をセットの種類に使用します。Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>)

シーケンスを列挙し、その内容の変更できないハッシュ セットを生成します。Enumerates a sequence and produces an immutable hash set of its contents.

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)

型パラメーター

TSource

シーケンス内の要素の型。The type of the elements in the sequence.

パラメーター

source
IEnumerable<TSource>

列挙するシーケンス。The sequence to enumerate.

戻り値

ImmutableHashSet<TSource>

指定されたシーケンス内の項目を含む、変更できないハッシュ セット。An immutable hash set that contains the items in the specified sequence.

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>) ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>) ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>)

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>

型パラメーター

TSource

パラメーター

builder
ImmutableHashSet<TSource>.Builder

戻り値

ImmutableHashSet<TSource>

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

シーケンスを列挙し、その内容の変更できないハッシュ セットを生成して、指定された等値比較子をセットの種類に使用します。Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

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

型パラメーター

TSource

シーケンス内の要素の型。The type of the elements in the sequence.

パラメーター

source
IEnumerable<TSource>

列挙するシーケンス。The sequence to enumerate.

equalityComparer
IEqualityComparer<TSource>

セット内のオブジェクトが等しいかどうかを比較するために使用するオブジェクト。The object to use for comparing objects in the set for equality.

戻り値

ImmutableHashSet<TSource>

指定したシーケンス内の項目を含み、指定された等値比較子を使用する、変更できないハッシュ セット。An immutable hash set that contains the items in the specified sequence and uses the specified equality comparer.

適用対象