ImmutableSortedSet<T>.Add(T) 方法

定义

将指定的值添加到此不可变排序集。

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ Add(T value);
public System.Collections.Immutable.ImmutableSortedSet<T> Add (T value);
member this.Add : 'T -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Add (value As T) As ImmutableSortedSet(Of T)

参数

value
T

要相加的值。

返回

ImmutableSortedSet<T>

已添加元素的新集,或者此集(如果该元素已在此集内)。

注解

System.Collections.Immutable NuGet 包

关于不可变集合以及如何安装

适用于