Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting method in sub class
Message
De
31/03/2015 11:53:27
 
 
À
31/03/2015 10:59:35
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01617154
Message ID:
01617504
Vues:
17
>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
Could it be possible the code I originally got was assuming only one level of sub class to verify with?

If that is the case, the change you suggested would then work on multiple levels.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform