System.Func<T1,T2,T3,T4,T5,TResult> Delegate

Encapsulates a method that has five parameters and returns a value of the type specified by the TResult parameter.

Syntax

public delegate TResult Func<T1, T2, T3, T4, T5, TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)

Type Parameters

T1
Documentation for this section has not yet been entered.
T2
Documentation for this section has not yet been entered.
T3
Documentation for this section has not yet been entered.
T4
Documentation for this section has not yet been entered.
T5
Documentation for this section has not yet been entered.
TResult
Documentation for this section has not yet been entered.

Parameters

arg1
Documentation for this section has not yet been entered.
arg2
Documentation for this section has not yet been entered.
arg3
Documentation for this section has not yet been entered.
arg4
Documentation for this section has not yet been entered.
arg5
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

You can use this delegate to represent a method that can be passed as a parameter without explicitly declaring a custom delegate. The encapsulated method must correspond to the method signature that is defined by this delegate. This means that the encapsulated method must have five parameters, each of which is passed to it by value, and that it must return a value.

Note:

To reference a method that has five parameters and returns void (or in Visual Basic, that is declared as a Sub rather than as a Function), use the generic Action`5 delegate instead.

You can also use the Func`6 delegate with anonymous methods and lambda expressions.

The underlying type of a lambda expression is one of the generic Func delegates. This makes it possible to pass a lambda expression as a parameter without explicitly assigning it to a delegate.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0