* EnumBuilder.cs (CreateType): Call a new icall to set the internal
type field. Fixes #59833.
svn path=/trunk/mcs/; revision=30620
+2004-07-02 Zoltan Varga <vargaz@freemail.hu>
+
+ * EnumBuilder.cs (CreateType): Call a new icall to set the internal
+ type field. Fixes #59833.
Thu Jun 24 15:33:04 CEST 2004 Paolo Molaro <lupus@ximian.com>
public Type CreateType ()
{
- return _tb.CreateType ();
+ Type res = _tb.CreateType ();
+ setup_enum_type (res);
+ return res;
}
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ private extern void setup_enum_type (Type t);
+
public FieldBuilder DefineLiteral (string literalName, object literalValue)
{
FieldBuilder fieldBuilder = _tb.DefineField (literalName,