W
wingphil
Hi there,
I have a shared method in a base class, and I need to know which
subclass it has been called from. So for example
Public Mustinherit Class BaseClass
Public Shared Sub SharedMethod
...
End Sub
End Class
Public Class DerivedClass1 : Inherits BaseClass
....
End Class
Public Class DerivedClass2 : Inherits BaseClass
....
End Class
Now, if I call DerivedClass1.SharedMethod, or
DerivedClass2.SharedMethod how can I tell from within SharedMethod
which has been called? I don't even know if this is possible.
Thanks very much for any help,
Phil
I have a shared method in a base class, and I need to know which
subclass it has been called from. So for example
Public Mustinherit Class BaseClass
Public Shared Sub SharedMethod
...
End Sub
End Class
Public Class DerivedClass1 : Inherits BaseClass
....
End Class
Public Class DerivedClass2 : Inherits BaseClass
....
End Class
Now, if I call DerivedClass1.SharedMethod, or
DerivedClass2.SharedMethod how can I tell from within SharedMethod
which has been called? I don't even know if this is possible.
Thanks very much for any help,
Phil