Encapsulates a method that has two parameters and returns a value of the type specified by the TResult parameter.
| C# | Visual Basic |
public delegate TResult Func<T1, T2, TResult>( T1 arg1, T2 arg2 )
Public Delegate Function Func(Of T1, T2, TResult) ( _ arg1 As T1, _ arg2 As T2 _ ) As TResult
- T1
- The type of the first parameter of the method that this delegate encapsulates.
- 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.
- arg1 (T1)
- The first parameter of the method that this delegate encapsulates.
- arg2 (T2)
- The second parameter of the method that this delegate encapsulates.
The return value of the method that this delegate encapsulates.