Produces the set union of two sequences by using the default equality comparer.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public static ISequence<TSource> Union<TSource>(
this ISequence<TSource> first,
IEnumerable<TSource> second
)
public static ISequence<TSource> Union<TSource>(
this ISequence<TSource> first,
IEnumerable<TSource> second
)
<ExtensionAttribute>
Public Shared Function Union(Of TSource) (
first As ISequence(Of TSource),
second As IEnumerable(Of TSource)
) As ISequence(Of TSource)
<ExtensionAttribute>
Public Shared Function Union(Of TSource) (
first As ISequence(Of TSource),
second As IEnumerable(Of TSource)
) As ISequence(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Union(
ISequence<TSource>^ first,
IEnumerable<TSource>^ second
)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Union(
ISequence<TSource>^ first,
IEnumerable<TSource>^ second
)
static member Union :
first : ISequence<'TSource> *
second : IEnumerable<'TSource> -> ISequence<'TSource>
static member Union :
first : ISequence<'TSource> *
second : IEnumerable<'TSource> -> ISequence<'TSource>
Parameters
- first
- Type: Sequences ISequence TSource
A sequence whose distinct elements form the first set for the union.
- second
- Type: System.Collections.Generic IEnumerable TSource
A sequence whose distinct elements form the second set for the union.
Type Parameters - TSource
- The type of the elements of the input sequences.
Return Value
Type:
ISequence TSource Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISequence TSource . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also