Encapsulates a method that has five parameters and returns a value of the type specified by the TResult parameter.
- 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.
- 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.
Documentation for this section has not yet been entered.
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.
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.