[Serializable] |
CodeAttributeDeclaration declaration1 = new CodeAttributeDeclaration("System.CLSCompliantAttribute", new CodeAttributeArgument(new CodePrimitiveExpression(false)));
This code generates the following output when compiled from a CodeDOM graph:
"[CLSCompliantAttribute=false]"
ctor #1 | Overloaded:.ctor() Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the CodeAttributeDeclaration class. |
ctor #2 | Overloaded:.ctor(string name) Initializes a new instance of the CodeAttributeDeclaration class using the specified name. |
ctor #3 | Overloaded:.ctor(string name, params CodeAttributeArgument[] arguments) Initializes a new instance of the CodeAttributeDeclaration class using the specified name and arguments. |
Arguments | Read-only Gets the arguments for the attribute. |
Name | Read-write Gets or sets the name of the attribute being declared. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public CodeAttributeDeclaration(); |
public CodeAttributeDeclaration( |
name
name
arguments
public CodeAttributeArgumentCollection Arguments {get;}
|
public string Name {get; set;}
|
~CodeAttributeDeclaration(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |