ImmutableSortedSet<T>.ISet<T>.ExceptWith(IEnumerable<T>) 方法

定义

从当前集内移除指定集合中的所有元素。Removes all elements in the specified collection from the current set.

 virtual void System.Collections.Generic.ISet<T>.ExceptWith(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Generic::ISet<T>::ExceptWith;
void ISet<T>.ExceptWith (System.Collections.Generic.IEnumerable<T> other);
Sub ExceptWith (other As IEnumerable(Of T)) Implements ISet(Of T).ExceptWith

参数

other
IEnumerable<T>

要从集内移除的项的集合。The collection of items to remove from the set.

实现

注解

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

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

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

适用于