RightJoinExtension.RightJoin<TFirst, TSecond, TKey, TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TKey>, Func<TSecond, TKey>, Func<TSecond, TResult>, Func<TFirst, TSecond, TResult>) Method
Performs a right outer join on two heterogeneous sequences.
Additional arguments specify key selection functions and result
projection functions.
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static IEnumerable<TResult> RightJoin<TFirst, TSecond, TKey, TResult>(
this IEnumerable<TFirst> first,
IEnumerable<TSecond> second,
Func<TFirst, TKey> firstKeySelector,
Func<TSecond, TKey> secondKeySelector,
Func<TSecond, TResult> secondSelector,
Func<TFirst, TSecond, TResult> bothSelector
)
<ExtensionAttribute>
Public Shared Function RightJoin(Of TFirst, TSecond, TKey, TResult) (
first As IEnumerable(Of TFirst),
second As IEnumerable(Of TSecond),
firstKeySelector As Func(Of TFirst, TKey),
secondKeySelector As Func(Of TSecond, TKey),
secondSelector As Func(Of TSecond, TResult),
bothSelector As Func(Of TFirst, TSecond, TResult)
) As IEnumerable(Of TResult)
public:
[ExtensionAttribute]
generic<typename TFirst, typename TSecond, typename TKey, typename TResult>
static IEnumerable<TResult>^ RightJoin(
IEnumerable<TFirst>^ first,
IEnumerable<TSecond>^ second,
Func<TFirst, TKey>^ firstKeySelector,
Func<TSecond, TKey>^ secondKeySelector,
Func<TSecond, TResult>^ secondSelector,
Func<TFirst, TSecond, TResult>^ bothSelector
)
[<ExtensionAttribute>]
static member RightJoin :
first : IEnumerable<'TFirst> *
second : IEnumerable<'TSecond> *
firstKeySelector : Func<'TFirst, 'TKey> *
secondKeySelector : Func<'TSecond, 'TKey> *
secondSelector : Func<'TSecond, 'TResult> *
bothSelector : Func<'TFirst, 'TSecond, 'TResult> -> IEnumerable<'TResult>
- first IEnumerable<TFirst>
-
The first sequence of the join operation.
- second IEnumerable<TSecond>
-
The second sequence of the join operation.
- firstKeySelector Func<TFirst, TKey>
-
Function that projects the key given an element from first.
- secondKeySelector Func<TSecond, TKey>
-
Function that projects the key given an element from second.
- secondSelector Func<TSecond, TResult>
-
Function that projects the result given just an element from
second where there is no corresponding element
in first.
- bothSelector Func<TFirst, TSecond, TResult>
-
Function that projects the result given an element from
first and an element from second
that match on a common key.
- TFirst
-
The type of elements in the first sequence.
- TSecond
-
The type of elements in the second sequence.
- TKey
-
The type of the key returned by the key selector functions.
- TResult
-
The type of the result elements.
IEnumerable<TResult>A sequence containing results projected from a right
outer join of the two input sequences.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable<TFirst>. 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).