This class represents a dynamically
created enumeration.
Enumerations are created at module scope using the
ModuleBuilder.DefineEnum( ) method. Before using a
dynamically created enumeration, you must use the
CreateType( ) method to complete it.
public sealed class EnumBuilder : Type {
// Public Instance Properties
public override Assembly Assembly{get; }
// overrides Type
public override string AssemblyQualifiedName{get; }
// overrides Type
public override Type BaseType{get; }
// overrides Type
public override Type DeclaringType{get; }
// overrides Type
public override string FullName{get; }
// overrides Type
public override Guid GUID{get; }
// overrides Type
public override Module Module{get; }
// overrides Type
public override string Name{get; }
// overrides System.Reflection.MemberInfo
public override string Namespace{get; }
// overrides Type
public override Type ReflectedType{get; }
// overrides Type
public override RuntimeTypeHandle TypeHandle{get; }
// overrides Type
public TypeToken TypeToken{get; }
public FieldBuilder UnderlyingField{get; }
public override Type UnderlyingSystemType{get; }
// overrides Type
// Public Instance Methods
public Type CreateType( );
public FieldBuilder DefineLiteral(string literalName, object literalValue);
public override ConstructorInfo[ ] GetConstructors(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override object[ ] GetCustomAttributes(bool inherit)
// overrides System.Reflection.MemberInfo
public override object[ ] GetCustomAttributes(Type attributeType, bool inherit)
// overrides System.Reflection.MemberInfo
public override Type GetElementType( );
// overrides Type
public override EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override EventInfo[ ] GetEvents( );
// overrides Type
public override EventInfo[ ] GetEvents(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override FieldInfo[ ] GetFields(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override Type GetInterface(string name, bool ignoreCase)
// overrides Type
public override InterfaceMapping GetInterfaceMap(Type interfaceType)
// overrides Type
public override Type[ ] GetInterfaces( );
// overrides Type
public override MemberInfo[ ] GetMember(string name, System.Reflection.MemberTypes type,
System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override MemberInfo[ ] GetMembers(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override MethodInfo[ ] GetMethods(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override Type GetNestedType(string name, System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override Type[ ] GetNestedTypes(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override PropertyInfo[ ] GetProperties(System.Reflection.BindingFlags bindingAttr)
// overrides Type
public override object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr,
System.Reflection.Binder binder, object target, object[ ] args,
System.Reflection.ParameterModifier[ ] modifiers,
System.Globalization.CultureInfo culture, string[ ] namedParameters)
// overrides Type
public override bool IsDefined(Type attributeType, bool inherit)
// overrides System.Reflection.MemberInfo
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[ ] binaryAttribute);
public void SetCustomAttribute(CustomAttributeBuilder customBuilder);
// Protected Instance Methods
protected override TypeAttributes GetAttributeFlagsImpl( );
// overrides Type
protected override ConstructorInfo GetConstructorImpl(System.Reflection.BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention,
Type[ ] types, System.Reflection.ParameterModifier[ ] modifiers)
// overrides Type
protected override MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[ ] types,
System.Reflection.ParameterModifier[ ] modifiers)
// overrides Type
protected override PropertyInfo GetPropertyImpl(string name,
System.Reflection.BindingFlags bindingAttr,
System.Reflection.Binder binder, Type returnType, Type[ ] types,
System.Reflection.ParameterModifier[ ] modifiers)
// overrides Type
protected override bool HasElementTypeImpl( );
// overrides Type
protected override bool IsArrayImpl( );
// overrides Type
protected override bool IsByRefImpl( );
// overrides Type
protected override bool IsCOMObjectImpl( );
// overrides Type
protected override bool IsPointerImpl( );
// overrides Type
protected override bool IsPrimitiveImpl( );
// overrides Type
protected override bool IsValueTypeImpl( );
// overrides Type
}