Files
mono/mcs/class/System/System.CodeDom/CodeAttributeDeclaration.cs
T
2002-05-11 15:44:41 +00:00

64 lines
1.0 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, 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;
}
}
}
}