SymmetricExceptWith Method

ISet<T>.SymmetricExceptWith Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

void SymmetricExceptWith(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>
The collection to compare to the current set.

ExceptionCondition
ArgumentNullException

other is null.

Any duplicate elements in other are ignored.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft