TechTalk Genome v4.2

Set<T>.Union Method (Set<T>, Set<T>, UnionMethod)

Returns the distinct union of two Set<T>s. Builds the resulting query using the specified UnionMethod hint.

public static Set<T> Union(
   Set<T> left,
   Set<T> right,
   UnionMethod hintedMethod
);

Parameters

left
A Set<T> to be united.
right
A Set<T> to be united.
hintedMethod
A value specifying which query building method should be used to compute the query of the resulting Set<T>.

Return Value

A Set<T> that contains all elements of left and right. The result is distinct, that means that every element in the resulting Set<T> is unique. The query used for the resulting Set<T> is built with the method specified in hintedMethod if that method is suitable for the source Set<T>s; otherwise UnionMethod.Default is used.

Exceptions

Exception TypeCondition
GenomeException

The source Set<T>s are in different DataDomains.

ArgumentNullException Either left or right is a null reference.

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

Set<T> Class | TechTalk.Genome Namespace | Set<T>.Union Overload List | UnionMethod | Union