Export (0) Print
Expand All

ImmutableHashSet<T>.Union Method

Creates a new immutable hash set that contains all elements that are present in either the current set or in the specified collection.

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

public ImmutableHashSet<T> Union(
	IEnumerable<T> other


Type: System.Collections.Generic.IEnumerable<T>

The collection to add elements from.

Return Value

Type: System.Collections.Immutable.ImmutableHashSet<T>
A new immutable hash set with the items added; or the original set if all the items were already in the set.
© 2015 Microsoft