See Also: EnumBuilder Members
In the .NET Framework versions 1.0 and 1.1, it is necessary to define enumerations using System.Reflection.Emit.TypeBuilder because System.Reflection.Emit.EnumBuilder emits enumerations whose elements are of type int instead of the enumeration type. In the .NET Framework version 2.0, System.Reflection.Emit.EnumBuilder emits enumerations whose elements have the correct type.