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 套件

關於不可變集合以及如何安裝

適用於