V
Vitaly Gorbenko
Does anyony know how to get Type from shared methods?
Thank you!
Vitaly
Sub Main()
MsgBox(A.TableName)
MsgBox(B.TableName) ' I want 'B' to be displayed!!!
End Sub
Public Class A
Public Shared ReadOnly Property TableName() As String
Get
' This is where the problem is. Me.GetType may not be called
' Obviously, GetType(A) will always return Type of A
TableName = GetType(A).FullName
End Get
End Property
End Class
Public Class B : Inherits A
End Class
Thank you!
Vitaly
Sub Main()
MsgBox(A.TableName)
MsgBox(B.TableName) ' I want 'B' to be displayed!!!
End Sub
Public Class A
Public Shared ReadOnly Property TableName() As String
Get
' This is where the problem is. Me.GetType may not be called
' Obviously, GetType(A) will always return Type of A
TableName = GetType(A).FullName
End Get
End Property
End Class
Public Class B : Inherits A
End Class