public sealed class ParamArrayAttribute : Attribute
Object
Attribute
ParamArrayAttribute
mscorlib
RuntimeInfrastructure
Indicates that a method allows a variable number of arguments in its invocation.
This attribute can be applied to parameters. A parameter array allows the specification of an unknown number of arguments. The array is required to be a single-dimensional array that is the last parameter in a formal parameter list. It 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 array functions as a value parameter.
- Zero or more arguments where each argument is an expression of a type that is implicitly convertible to the type of the parameter-array element.
AttributeUsageAttribute(AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)
System Namespace
ParamArrayAttribute Constructors
public ParamArrayAttribute();
Constructs a new instance of the ParamArrayAttribute class.
System.ParamArrayAttribute Class, System Namespace