IImmutableSet<T>.SymmetricExcept(IEnumerable<T>) IImmutableSet<T>.SymmetricExcept(IEnumerable<T>) IImmutableSet<T>.SymmetricExcept(IEnumerable<T>) IImmutableSet<T>.SymmetricExcept(IEnumerable<T>) Method

定義

建立不可變的資料集,其中僅包含在目前資料集或指定之集合 (但非兩者) 中出現的項目。Creates an immutable set that contains only elements that are present either in the current set or in the specified collection, but not both.

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

參數

other
IEnumerable<T> IEnumerable<T> IEnumerable<T> IEnumerable<T>

要與目前資料組比較的集合。The collection to compare to the current set.

傳回

新的資料集,其中僅包含在目前資料集或指定之集合 (但非兩者) 中出現的項目。A new set that contains the elements that are present only in the current set or in the specified collection, but not both.

適用於