Name
EnumBuilder
Synopsis
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 field Assembly Assembly{get; } // overrides Type public override field string AssemblyQualifiedName{get; } // overrides Type public override field Type BaseType{get; } // overrides Type public override field Type DeclaringType{get; } // overrides Type public override field string FullName{get; } // overrides Type public override field Guid GUID{get; } // overrides Type public override field Module Module{get; } // overrides Type public override field string Name{get; } // overrides System.Reflection.MemberInfo public override field string Namespace{get; } // overrides Type public override field Type ReflectedType{get; } // overrides Type public override field RuntimeTypeHandle TypeHandle{get; } // overrides Type public field TypeToken TypeToken{get; } public field FieldBuilder UnderlyingField{get; } public override field Type UnderlyingSystemType{get; } // overrides Type // Public Instance Methods public method Type CreateType(); public method FieldBuilder DefineLiteral( string literalName, object literalValue); public override method ConstructorInfo[] GetConstructors( // overrides Type System.Reflection.BindingFlags bindingAttr ...
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.