System.ParamArrayAttribute Class

public sealed class ParamArrayAttribute : Attribute

Base Types

Object
  Attribute
    ParamArrayAttribute

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Indicates that a method allows a variable number of arguments in its invocation.

Description

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:

Attributes

AttributeUsageAttribute(AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)

See Also

System Namespace

Members

ParamArrayAttribute Constructors

ParamArrayAttribute Constructor


ParamArrayAttribute Constructor

public ParamArrayAttribute();

Summary

Constructs a new instance of the ParamArrayAttribute class.

See Also

System.ParamArrayAttribute Class, System Namespace