ParamArrayAttribute

ParamArrayAttribute CF 1.0, ECMA 1.0

System (mscorlib.dll) sealed class

This attribute is used on a method to indicate that it can accept a variable number of parameters. The method has an array as its last parameter, and the list of values passed to the method are stored in the array. In C#, use the params keyword to create methods with a variable number of arguments, rather than using this attribute directly.

 public sealed class  ParamArrayAttribute  : Attribute {  // Public Constructors  public  ParamArrayAttribute  ( ); } 

Hierarchy

Object Attribute ParamArrayAttribute

Valid On

Parameter



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net