Mono Class Library: System.CodeDom.CodeTypeDeclaration Overview | MembersSystem.CodeDom.CodeTypeDeclaration.IsEnum Property |
Flag signifying whether the object is an Enumeration Enum. [Edit]
|
Documentation for this section has not yet been entered. [Edit]
Generates the following code for the C# generator:
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"));[Edit]
C# Example public enum Colors { BLUE = 2, Green, }
Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0