ImmutableHashSet<T>.IImmutableSet<T>.Add(T) Método

Definición

Agrega el elemento especificado a este conjunto inmutable.

 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

Parámetros

item
T

Elemento que se va a agregar.

Devoluciones

Nuevo conjunto con el elemento agregado o este conjunto si el elemento ya está en el conjunto.

Implementaciones

Comentarios

Este miembro es una implementación explícita de un miembro de interfaz. Solo se puede utilizar cuando la instancia de ImmutableHashSet<T> se convierte en una interfaz IImmutableSet<T>.

Se aplica a