Encapsulates a method that has one parameter and returns a value of the type specified by the TResult parameter.
| C# | Visual Basic |
public delegate TResult Func<T, TResult>( T arg )
Public Delegate Function Func(Of T, TResult) ( _ arg As T _ ) As TResult
- T
- The type of the first parameter of the method that this delegate encapsulates.
- TResult
- The type of the return value of the method that this delegate encapsulates.
- arg (T)
- The first parameter of the method that this delegate encapsulates.
The return value of the method that this delegate encapsulates.