[Mono-devel-list] [patch] c# CodeGenerator enum output

Fawad Halim fawad at fawad.net
Sun Jul 11 22:09:03 EDT 2004

    Attached patch fixes a small bug with the output of the enum 
expression in the C# Generator. For example,

CodeTypeDeclaration colorEnum=new CodeTypeDeclaration("Colors");
colorEnum.Members.Add(new CodeMemberField(typeof(int),"Green"));

was generating

public enum Colors{int Green,}

which doesn't compile.

Ok to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_codedom_enum.diff
Type: text/x-patch
Size: 979 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040711/e769e8bf/attachment.bin 

More information about the Mono-devel-list mailing list