FuncT1, T2, TResult Delegate |
Encapsulates a method that has two parameters and returns a value of the type specified by the TResult parameter.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public delegate TResult Func<in T1, in T2, out TResult>(
T1 arg1,
T2 arg2
)
Parameters
- arg1
- Type: T1
The first parameter of the method that this delegate encapsulates. - arg2
- Type: T2
The second parameter of the method that this delegate encapsulates.
Type Parameters
- T1
- The type of the first parameter of the method that this delegate encapsulates.This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
- T2
- The type of the second parameter of the method that this delegate encapsulates.
- TResult
- The type of the return value of the method that this delegate encapsulates.This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Return Value
Type:
TResultThe return value of the method that this delegate encapsulates.
See Also