Delegate Action<T1, T2>
Encapsulates a method that has a single parameter and does not return a value.
Assembly: mscorlib.dll
Syntax
public delegate void Action<in T1, in T2>(T1 arg1, T2 arg2)
Parameters
Type |
Name |
Description |
T1 |
arg1 |
The first parameter of the method that this delegate encapsulates.
|
T2 |
arg2 |
The second parameter of the method that this delegate encapsulates.
|
Type Parameters
Name |
Description |
T1 |
The type of the first 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.
|
T2 |
The type of the second 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.
|
Constructors
Action(object, IntPtr)
Declaration
public Action(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(T1, T2, AsyncCallback, object)
Declaration
public virtual IAsyncResult BeginInvoke(T1 arg1, T2 arg2, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(IAsyncResult)
Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
Invoke(T1, T2)
Declaration
public virtual void Invoke(T1 arg1, T2 arg2)
Parameters
Type |
Name |
Description |
T1 |
arg1 |
|
T2 |
arg2 |
|
Extension Methods