ImmutableSortedSet<T>.ICollection<T>.Add(T) 方法

定义

将指定值添加到集合。Adds the specified value to the collection.

 virtual void System.Collections.Generic.ICollection<T>.Add(T item) = System::Collections::Generic::ICollection<T>::Add;
void ICollection<T>.Add (T item);
Sub Add (item As T) Implements ICollection(Of T).Add

参数

item
T

要添加的值。The value to add.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedSet<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ImmutableSortedSet<T> instance is cast to an ICollection<T> interface.

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

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

适用于