Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: TResult Apply<TSource1, TSource2, TResult>(this ValueTuple<TSource1, TSource2>, Func<TSource1, TSource2, TResult>)

  • Declared in: RT.Util.Ut

Declaration

public static TResult Apply<TSource1, TSource2, TResult>(
    this ValueTuple<TSource1, TSource2> source,
    Func<TSource1, TSource2, TResult> func
)

Summary

Executes the specified function with the specified tuple argument.

Generic type parameters

TSource1 Type of the first element in the tuple argument to the function.
TSource2 Type of the second element in the tuple argument to the function.
TResult Type of the result of the function.

Parameters

this ValueTuple<TSource1, TSource2>source The argument to the function.
Func<TSource1, TSource2, TResult>func The function to execute.

Returns

The result of the function.