ImmutableHashSet<T>.Add(T) 方法

定义

将指定的元素添加到哈希集。Adds the specified element to the hash set.

public:
 System::Collections::Immutable::ImmutableHashSet<T> ^ Add(T item);
public System.Collections.Immutable.ImmutableHashSet<T> Add (T item);
member this.Add : 'T -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Add (item As T) As ImmutableHashSet(Of T)

参数

item
T

要添加到集中的元素。The element to add to the set.

返回

包含添加的值和之前由 ImmutableHashSet<T> 对象保存的任何值的哈希集。A hash set that contains the added value and any values previously held by the ImmutableHashSet<T> object.

适用于