Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ISet<T>.UnionWith Method

Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection.

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

void UnionWith(
	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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft