ImmutableSortedSet<T>.Except(IEnumerable<T>) 方法

定义

从此不可变排序集内移除一组指定项。Removes a specified set of items from this immutable sorted set.

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ Except(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.ImmutableSortedSet<T> Except (System.Collections.Generic.IEnumerable<T> other);
member this.Except : seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Except (other As IEnumerable(Of T)) As ImmutableSortedSet(Of T)

参数

other
IEnumerable<T>

要从此集内移除的项。The items to remove from this set.

返回

已移除项的新集;如果原始集不包含任何项,则为原始集。A new set with the items removed; or the original set if none of the items were in the set.

注解

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

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

适用于