RuntimeInfrastructure mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0 4.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Attribute System.AttributeUsage(System.AttributeTargets.Parameter) System.Runtime.InteropServices.ComVisible(true)

The indicates that a method parameter is a parameter array. 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. When the method is called, a parameter array permits arguments to a method to be specified in either of two ways:

As a single expression of a type that is implicitly convertible to the parameter array type. The parameter array functions as a value parameter.

As 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.

The example in the next section illustrates both calling conventions.

Typically, the is not used directly in code. Instead, individual language keywords, such as ParamArray in Visual Basic and params in C#, are used as wrappers for the class. Some languages, such as C#, may even require the use of the language keyword and prohibit the use of .

During overload resolution, when compilers that support parameter arrays encounter a method overload that does not exist but has one fewer parameter than an overload that includes a parameter array, they will replace the method with the overload that includes the parameter array. For example, a call to the String.Split() instance method (which does not exist in the class) is resolved as a call to the method. The compiler will also pass an empty array of the required type to the method. This means that the method must always be prepared to handle an array whose length is zero when it processes the elements in the parameter array. The example provides an illustration.

For more information about using attributes, see Extending Metadata Using Attributes.

Indicates that a method will allow a variable number of arguments in its invocation. This class cannot be inherited.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added.

  Initializes a new instance of the class with default properties.

  0
0