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#

privatestaticIEnumerable<TResult>PairwiseImpl<TSource,TResult>(thisIEnumerable<TSource>source,Func<TSource,TSource,TResult>resultSelector)

VB

<ExtensionAttribute>PrivateSharedFunctionPairwiseImpl(OfTSource,TResult)(sourceAsIEnumerable(OfTSource),resultSelectorAsFunc(OfTSource,TSource,TResult))AsIEnumerable(OfTResult)

C++

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

F#

[<ExtensionAttribute>]privatestatic memberPairwiseImpl: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