Skip to content

M_CSharpx_EnumerableExtensions_PairwiseImpl__2

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

EnumerableExtensions.PairwiseImpl(TSource, TResult) Method

Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static IEnumerable<TResult> PairwiseImpl<TSource, TResult>(
	this IEnumerable<TSource> source,
	Func<TSource, TSource, TResult> resultSelector
)

VB

<ExtensionAttribute>
Private Shared Function PairwiseImpl(Of TSource, TResult) ( 
	source As IEnumerable(Of TSource),
	resultSelector As Func(Of TSource, TSource, TResult)
) As IEnumerable(Of TResult)

C++

private:
[ExtensionAttribute]
generic<typename TSource, typename TResult>
static IEnumerable<TResult>^ PairwiseImpl(
	IEnumerable<TSource>^ source, 
	Func<TSource, TSource, TResult>^ resultSelector
)

F#

[<ExtensionAttribute>]
private static member PairwiseImpl : 
        source : IEnumerable<'TSource> * 
        resultSelector : Func<'TSource, 'TSource, 'TResult> -> IEnumerable<'TResult> 

Parameters

 

source
Type: System.Collections.Generic.IEnumerable(TSource)
resultSelector
Type: System.Func(TSource, TSource, TResult)

Type Parameters

 

TSource
TResult

Return Value

Type: IEnumerable(TResult)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(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

Reference

EnumerableExtensions Class
CSharpx Namespace

Clone this wiki locally