System Namespace
Indicates that the method will allow a variable number of arguments in its invocation. This class cannot be inherited.
A parameter array allows the specification of an unknown number of arguments. A parameter array must be the last parameter in a formal parameter list, and it must be a single-dimension array. A parameter array permits arguments to a method to be specified in two ways:
- A single expression of a type that is implicitly convertible to the parameter array type. The parameter array functions as a value parameter.
- Zero or more arguments where each argument is an expression of a type that is implictly convertible to the type of the parameter array element.
For more information about using attributes, see Extending Metadata Using Attributes.
Attribute