ImmutableSortedSet<T>.IImmutableSet<T>.Add(T) メソッド

定義

この変更できないセットに、指定した要素を追加します。

 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

パラメーター

value
T

追加する要素。

戻り値

要素が追加された新しいセット。または、要素がセット内に既に存在する場合は、このセット。

実装

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、ImmutableSortedSet<T> のインスタンスが IImmutableSet<T> インターフェイスにキャストされる場合のみ、使用できます。

System.Collections.Immutable NuGet パッケージ

不変コレクションとインストール方法について

適用対象