mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* CodeAttributeDeclaration.cs: * CodeDelegateInvokeExpression: -Added "params" keyword to constructors svn path=/trunk/mcs/; revision=21979
64 lines
1.1 KiB
C#
Executable File
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|