O'Reilly logo

VB.NET Core Classes in a Nutshell by Ted Neward, Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 NotInheritable Class EnumBuilder : Inherits Type
' Public Instance Properties
   Overrides Public ReadOnly Property Assembly As Assembly  
   Overrides Public ReadOnly Property AssemblyQualifiedName As String  
   Overrides Public ReadOnly Property BaseType As Type  
   Overrides Public ReadOnly Property DeclaringType As Type  
   Overrides Public ReadOnly Property FullName As String  
   Overrides Public ReadOnly Property GUID As Guid  
   Overrides Public ReadOnly Property Module As Module  
   Overrides Public ReadOnly Property Name As String  
   Overrides Public ReadOnly Property Namespace As String  
   Overrides Public ReadOnly Property ReflectedType As Type  
   Overrides Public ReadOnly Property TypeHandle As RuntimeTypeHandle  
   Public ReadOnly Property TypeToken As TypeToken  
   Public ReadOnly Property UnderlyingField As FieldBuilder  
   Overrides Public ReadOnly Property UnderlyingSystemType As Type  
' Public Instance Methods
   Public Function CreateType() As Type  
   Public Function DefineLiteral(ByVal literalName As String, 
        ByVal literalValue As Object) As FieldBuilder  
   Overrides Public Function GetConstructors(
        ByVal bindingAttr As System.Reflection.BindingFlags) As ConstructorInfo()  
   Overrides Public Function GetCustomAttributes( ByVal inherit As Boolean) As Object() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required