ImmutableSortedSet<T>.IList.Add Method (Object)

 

Adds an item to the set.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

int IList.Add(
	object value
)

Parameters

value
Type: System.Object

The object to add to the set.

Return Value

Type: System.Int32

The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

Exception Condition
NotSupportedException

The set is read-only or has a fixed size.

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

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Return to top
Show: