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

定义

修改当前集,使该集仅包含存在于当前集或指定集合中的元素(但不同时存在于两者中)。Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.

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

参数

other
IEnumerable<T>

要与当前集进行比较的集合。The collection to compare to the current 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

适用于