Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting method in sub class
Message
From
31/03/2015 09:06:46
 
 
To
31/03/2015 09:00:38
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01617154
Message ID:
01617485
Views:
24
>>>Hmm. Don't think so. The type of toOriginator will be the that of the child class instance. You need to explicitly test the DeclaringType against the base (root) class
>
>toOriginator is the base class.
>
>This detection is called from the base class only. The Me being passed here is from the base class:
>
>
>        ' If the method exists in the client class
>        If loReflection.IsMethodExistInSubClass(Me, "InitializeWithRow") Then
>        End If
>
Doesn't work that way in C#. Be very surprised if that was the case in VB.NET - the type of 'Me' will be the type of the instance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform