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

定义

检索排序和顺序语义与此实例相同的空不可变集。Retrieves an empty immutable set that has the same sorting and ordering semantics as this instance.

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Clear() = System::Collections::Immutable::IImmutableSet<T>::Clear;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Clear ();
Function Clear () As IImmutableSet(Of T) Implements IImmutableSet(Of T).Clear

返回

排序和顺序语义与此实例相同的空集。An empty set that has the same sorting and ordering semantics as this instance.

实现

注解

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

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

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

适用于