G
George
I declared an enumeration inside an interface. Trying to use reflection to
find the FullName of the enumeration type produces
"WindowsApplication1.IGeorge+GeorgeConstants"
rather than
"WindowsApplication1.IGeorge.GeorgeConstants"
as I (and the rest of the framework) would expect.
My code is as follows (start a new VB Windows app, add the Interface and the
call to Msgbox into the Form_Load, hit F5):
Public Interface IGeorge
Enum GeorgeConstants
GeorgeConstant1
GeorgeConstant2
GeorgeConstant3
End Enum
End Interface
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
:
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
MsgBox(GetType(IGeorge.GeorgeConstants).FullName)
End Sub
End Class
George.
find the FullName of the enumeration type produces
"WindowsApplication1.IGeorge+GeorgeConstants"
rather than
"WindowsApplication1.IGeorge.GeorgeConstants"
as I (and the rest of the framework) would expect.
My code is as follows (start a new VB Windows app, add the Interface and the
call to Msgbox into the Form_Load, hit F5):
Public Interface IGeorge
Enum GeorgeConstants
GeorgeConstant1
GeorgeConstant2
GeorgeConstant3
End Enum
End Interface
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
:
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
MsgBox(GetType(IGeorge.GeorgeConstants).FullName)
End Sub
End Class
George.