Uredi

Deli z drugimi prek


ImmutableSortedSet<T>.Union(IEnumerable<T>) Method

Definition

Adds a given set of items to this immutable sorted set.

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ Union(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.ImmutableSortedSet<T> Union (System.Collections.Generic.IEnumerable<T> other);
member this.Union : seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Union (other As IEnumerable(Of T)) As ImmutableSortedSet(Of T)

Parameters

other
IEnumerable<T>

The items to add.

Returns

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

Remarks

System.Collections.Immutable NuGet package

About immutable collections and how to install

Applies to