ImmutableSortedSet<T>.ISet<T>.Add(T) Método

Definición

Agrega un elemento al conjunto actual y devuelve un valor que indica si el elemento se ha agregado correctamente.

 virtual bool System.Collections.Generic.ISet<T>.Add(T item) = System::Collections::Generic::ISet<T>::Add;
bool ISet<T>.Add (T item);
abstract member System.Collections.Generic.ISet<T>.Add : 'T -> bool
override this.System.Collections.Generic.ISet<T>.Add : 'T -> bool
Function Add (item As T) As Boolean Implements ISet(Of T).Add

Parámetros

item
T

Elemento que se va a agregar al conjunto.

Devoluciones

false si el elemento se ha agregado al conjunto; true 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 ImmutableSortedSet<T> se convierte en una interfaz ISet<T>.

Paquete NuGet System.Collections.Immutable

Acerca de las colecciones inmutables y cómo instalar

Se aplica a