ImmutableSortedSet<T>.IImmutableSet<T>.Remove(T) 方法

定义

从此不可变集内移除指定的元素。Removes the specified element from this immutable set.

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

参数

value
T

要删除的元素。The element to remove.

返回

已移除指定元素的新集,或者当前集(如果在该集内找不到该元素)。A new set with the specified element removed, or the current set if the element cannot be found in the set.

实现

注解

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

适用于