Table of Contents

Delegate Action<T>

Namespace
System
Assembly
mscorlib.dll

Encapsulates a method that has a single parameter and does not return a value.

public delegate void Action<in T>(T obj)

Parameters

obj T

The parameter of the method that this delegate encapsulates.

Type Parameters

T

The type of the parameter 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

Action(object, IntPtr)

public Action(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(T, AsyncCallback, object)

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

Parameters

obj T
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(T)

public virtual void Invoke(T obj)

Parameters

obj T