ImmutableHashSet<T>.IImmutableSet<T>.Union Method (IEnumerable<T>)


Creates a new immutable 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)

IImmutableSet<T> IImmutableSet<T>.Union(
	IEnumerable<T> other


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

The collection to add elements from.

Return Value

Type: System.Collections.Immutable.IImmutableSet<T>

A new immutable set with the items added; or the original set if all the items were already in the set.

This member is an explicit interface member implementation. It can be used only when the ImmutableHashSet<T> instance is cast to an IImmutableSet<T> interface.

Return to top