System.Reflection.Emit.EnumBuilder Class

Describes and represents an enumeration type.

See Also: EnumBuilder Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._EnumBuilder))]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class EnumBuilder : System.Reflection.TypeInfo, System.Runtime.InteropServices._EnumBuilder

Remarks

Note:

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.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0