ImmutableSortedSet<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)

private:
virtual IImmutableSet<T>^ Union(
	IEnumerable<T>^ other
) sealed = IImmutableSet<T>::Union

Parameters

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 ImmutableSortedSet<T> instance is cast to an IImmutableSet<T> interface.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Return to top
Show: