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

定义

创建一个不可变排序集,其中包含存在于此集内或者给定序列内(但不同时存在于两者中)的元素。Creates an immutable sorted set that contains elements that exist either in this set or in a given sequence, but not both.

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

参数

other
IEnumerable<T>

项的另一个序列。The other sequence of items.

返回

新的不可变排序集。The new immutable sorted set.

注解

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

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

适用于