ImmutableSortedSet<T>.IList.Add(Object) Método

Definición

Agrega un elemento al conjunto.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

Parámetros

value
Object

Objeto que se va a agregar al conjunto.

Devoluciones

Int32

La posición en la que se insertó el nuevo elemento o -1 para indicar que el elemento no se insertó en la colección.

Implementaciones

Excepciones

El conjunto es de solo lectura o tiene un tamaño fijo.

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 IList.

Paquete de NuGet System.Collections.Immutable

Acerca de las colecciones inmutables y cómo instalar

Se aplica a