Files
mono/mcs/class/System/System.CodeDom/CodeAttributeDeclaration.cs
T
Gonzalo Paniagua Javier 24c4c225d2 2003-12-23 Jaroslaw Kowalski <[email protected]>
* CodeAttributeDeclaration.cs:
	* CodeDelegateInvokeExpression:
	  -Added "params" keyword to constructors

svn path=/trunk/mcs/; revision=21979
2004-01-12 11:12:48 +00:00

64 lines
1.1 KiB
C#
Executable File

//
// System.CodeDom CodeAttributeDeclaration Class implementation
//
// Author:
// Miguel de Icaza ([email protected])
// Daniel Stodden ([email protected])
//
// (C) 2001 Ximian, Inc.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeDeclaration
{
private string name;
private CodeAttributeArgumentCollection arguments;
//
// Constructors
//
public CodeAttributeDeclaration ()
{
}
public CodeAttributeDeclaration (string name)
{
this.name = name;
}
public CodeAttributeDeclaration (string name, params CodeAttributeArgument [] arguments)
{
this.name = name;
Arguments.AddRange (arguments);
}
//
// Properties
//
public CodeAttributeArgumentCollection Arguments {
get {
if ( arguments == null )
arguments = new CodeAttributeArgumentCollection();
return arguments;
}
}
public string Name {
get {
return name;
}
set {
name = value;
}
}
}
}