ImmutableHashSet.CreateBuilder 方法

定义

重载

CreateBuilder<T>()

创建一个新的不可变哈希集生成器。

CreateBuilder<T>(IEqualityComparer<T>)

创建一个新的不可变哈希集生成器。

CreateBuilder<T>()

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
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>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
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>

用于比较集内对象相等性的对象。

返回

新的不可变哈希集生成器。

适用于