ImmutableSortedSet<T>.Add(T) 方法

定义

将指定的值添加到此不可变排序集。Adds the specified value to this immutable sorted set.

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

要添加的值。The value to add.

返回

已添加元素的新集,或者此集(如果该元素已在此集内)。A new set with the element added, or this set if the element is already in this set.

注解

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于