Επεξεργασία

Κοινή χρήση μέσω


ImmutableHashSet<T>.IImmutableSet<T>.Add(T) Method

Definition

Adds the specified element to this immutable set.

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Add(T item) = System::Collections::Immutable::IImmutableSet<T>::Add;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Add (T item);
abstract member System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
Function Add (item As T) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Add

Parameters

item
T

The element to add.

Returns

A new set with the element added, or this set if the element is already in the set.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ImmutableHashSet<T> instance is cast to an IImmutableSet<T> interface.

Applies to