Table of Contents

Delegate Func<TResult>

Namespace
System
Assembly
mscorlib.dll

Encapsulates a method that has no parameters and returns a value of the type specified by the TResult parameter.

public delegate TResult Func<out TResult>()

Returns

TResult

The return value of the method that this delegate encapsulates.

Type Parameters

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.

Extension Methods

Constructors

Func(object, IntPtr)

public Func(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object @object)

Parameters

callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual TResult EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

TResult

Invoke()

public virtual TResult Invoke()

Returns

TResult