ImmutableSortedSet<T>::ISet<T>::Add Method (T)

 

Adds an element to the current set and returns a value to indicate if the element was successfully added.

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

private:
virtual bool Add(
	T item
) sealed = ISet<T>::Add

Parameters

item
Type: T

The element to add to the set.

Return Value

Type: System::Boolean

true if the element is added to the set; false if the element is already in the set.

Implements

ISet<T>::Add(T)

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

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

Return to top
Show: