Mono Class Library: System.CodeDom.CodeTypeDeclaration Overview | Members

System.CodeDom.CodeTypeDeclaration.IsEnum Property

Flag signifying whether the object is an Enumeration Enum. [Edit]

public bool IsEnum { set; get; }

Value

Documentation for this section has not yet been entered. [Edit]

Remarks

C# Example
		CodeTypeDeclaration colorEnum=new CodeTypeDeclaration("Colors");
		colorEnum.IsEnum=true;
		CodeMemberField memBlue=new CodeMemberField(typeof(int),"BLUE");
		memBlue.InitExpression=new CodeSnippetExpression("2");
		colorEnum.Members.Add(memBlue);
		colorEnum.Members.Add(new CodeMemberField(typeof(int),"Green"));
  
Generates the following code for the C# generator:
C# Example
    public enum Colors {

        BLUE = 2,

        Green,
    }
[Edit]

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0