asp.net.ph

ParamArrayAttribute Class

System Namespace


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

ParamArrayAttribute Class Members

Collapse   Constructors

Visibility Constructor Parameters
public ParamArrayAttribute ( )

Remarks

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.

See Also

Attribute Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph