ImmutableSortedSet<T>.Union(IEnumerable<T>) 方法

定义

将一组给定项添加到此不可变排序集。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)

参数

other
IEnumerable<T>

要添加的项。The items to add.

返回

已添加项的新集;或者原始集(如果所有项已在该集内)。The new set with the items added; or the original set if all the items were already in the set.

注解

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于