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