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

Definizione

Aggiunge l'elemento specificato a questo set non modificabile.

 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

Parametri

item
T

Elemento da aggiungere.

Restituisce

Nuovo set con l'elemento aggiunto o questo set se l'elemento è già presente nel set.

Implementazioni

Commenti

Questo membro è un’implementazione esplicita di un membro di interfaccia. Può essere utilizzato solo quando si esegue il cast dell'istanza ImmutableHashSet<T> a un'interfaccia IImmutableSet<T>.

Si applica a