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

Definition

Adds the specified element to this immutable set.

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Add(T value) = System::Collections::Immutable::IImmutableSet<T>::Add;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Add (T value);
abstract member System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
Function Add (value As T) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Add

Parameters

value
T

The element to add.

Returns

A new set with the element added, or this set if the element is already in the set.

Implements

Remarks

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.

System.Collections.Immutable NuGet package

About immutable collections and how to install

Applies to