Encapsulates a method that has a single parameter and does not return a value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public delegate void Action<in T>(
T obj
)
Parameters
- obj
- Type: 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 contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
See Also