Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting method in sub class
Message
De
31/03/2015 04:35:52
 
 
À
30/03/2015 13:03:08
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:
01617469
Vues:
34
This message has been marked as a message which has helped to the initial question of the thread.
>>Can you give an example of where it doesn't work ?
>
>The Framework has the base class. One particular data entry form is also from the framework. So, at that level, I have the base class and the sub class. Then, I have the application class. That is the 3rd level. In that particular scenario, the InitializeWithRow() method is located in the framework data entry form sub class, which is the 2nd level. In that scenario, the simplified code cannot detect it.

If you want to determine if the method has been overridden anywhere in the class hierarchy you could use:
return (loMethodInfo.DeclaringType <> GetType(FrameworkBaseClass))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform