Method GetParametersCount
GetParametersCount(MulticastDelegate)
Returns the number of parameters of the action
Declaration
public static int GetParametersCount(this MulticastDelegate action)
Parameters
Type | Name | Description |
---|---|---|
MulticastDelegate | action | The MulticastDelegate to examine. |
Returns
Type | Description |
---|---|
int | The number of parameters of the |
Remarks
The examination of parameters number is based on the first delegate of action
.
Thus, if action
's invocation list is empty, -1 will be returned