Export (0) Print
Expand All

ImmutableSortedSet<T>.IImmutableSet<T>.Add Method

Adds the specified element to this immutable set.

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

IImmutableSet<T> IImmutableSet<T>.Add(
	T value
)

Parameters

value
Type: T

The element to add.

Return Value

Type: System.Collections.Immutable.IImmutableSet<T>
A new set with the element added, or this set if the element is already in the set.

Implements

IImmutableSet<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 IImmutableSet<T> interface.

NuGet package: Microsoft.Bcl.Immutable (about immutable collections and how to install)

Show:
© 2014 Microsoft