共用方式為


ImmutableHashSet.CreateBuilder 方法

定義

多載

CreateBuilder<T>()

建立新的不可變雜湊集產生器。

CreateBuilder<T>(IEqualityComparer<T>)

建立新的不可變雜湊集產生器。

CreateBuilder<T>()

來源:
ImmutableHashSet.cs
來源:
ImmutableHashSet.cs
來源:
ImmutableHashSet.cs

建立新的不可變雜湊集產生器。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T>::Builder ^ CreateBuilder();
public static System.Collections.Immutable.ImmutableHashSet<T>.Builder CreateBuilder<T> ();
static member CreateBuilder : unit -> System.Collections.Immutable.ImmutableHashSet<'T>.Builder
Public Function CreateBuilder(Of T) () As ImmutableHashSet(Of T).Builder

類型參數

T

由集合所儲存的項目類型。

傳回

不可變雜湊集產生器。

適用於

CreateBuilder<T>(IEqualityComparer<T>)

來源:
ImmutableHashSet.cs
來源:
ImmutableHashSet.cs
來源:
ImmutableHashSet.cs

建立新的不可變雜湊集產生器。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T>::Builder ^ CreateBuilder(System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<T>.Builder CreateBuilder<T> (System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<T>.Builder CreateBuilder<T> (System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
static member CreateBuilder : System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>.Builder
Public Function CreateBuilder(Of T) (equalityComparer As IEqualityComparer(Of T)) As ImmutableHashSet(Of T).Builder

類型參數

T

由集合所儲存的項目類型。

參數

equalityComparer
IEqualityComparer<T>

比較集合中物件相等所使用的物件。

傳回

新的不可變雜湊集產生器。

適用於