ImmutableSortedSet<T>.IImmutableSet<T>.Union メソッド

定義

現在のセットと指定されたコレクションのどちらかに存在するすべての要素が格納された、新しい変更できないセットを作成します。

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Union(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Immutable::IImmutableSet<T>::Union;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Union (System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Immutable.IImmutableSet<T>.Union : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Union : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Function Union (other As IEnumerable(Of T)) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Union

パラメーター

other
IEnumerable<T>

要素の追加元のコレクション。

戻り値

項目が追加された、新しい変更できないセット。すべての項目が既にセットにあった場合は、元のセット。

実装

注釈

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

System.Collections.Immutable NuGet パッケージ

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

適用対象