ImmutableSortedSet<T>.Builder.ICollection<T>.Add(T) ImmutableSortedSet<T>.Builder.ICollection<T>.Add(T) ImmutableSortedSet<T>.Builder.ICollection<T>.Add(T) Method

定义

向当前集内添加元素,并返回一个指示是否已成功添加元素的值。Adds an element to the current set and returns a value to indicate whether the element was successfully added.

 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 T T

要添加到集中的元素。The element to add to the set.

实现

注解

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

适用于