Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting method in sub class
Message
From
31/03/2015 10:59:35
 
 
To
31/03/2015 10:41:08
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:
01617496
Views:
15
>>Just looked at the code you posted earlier. You should be passing the *type* of DataEntry to the method.
>
>I tried that as well. I tried using DataEntry.GetType but that was not any better. This got too complicated as I needed to pass an additional parameter at the type level. The current implementation does not require this as only two parameters are needed.

Passing type works fine (as far as I can test).

But if you go back to your original code then surely this will always end up with the object type.:
While loType <> GetType(Object)
            loType = loType.BaseType
End While
Seems to me it should be:
While loType.BaseType <> GetType(Object)
            loType = loType.BaseType
End While
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform