ImmutableSortedSet<T>.ICollection<T>.Clear 方法

定义

从集合中移除所有项。Removes all the items from the collection.

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

实现

注解

此成员是显式接口成员实现。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

适用于