Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting method in sub class
Message
De
24/03/2015 05:51:56
 
 
À
24/03/2015 04:41:12
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:
01617174
Vues:
37
Had similar thoughts and wondered if there were empty/dummy methods declared in the base class to early(ly??) define method signatures similar to interfaces.
As nothing forces you to implement such methods when NOT done via interfaces, it might be necessary, if such methods have side effects expected to work in the fwk. Side effects as pillar of a fwk OTOH are not the typical pattern, to put it mildly, so I do wonder still myself...

>If I understand correctly you are just trying to determine whether the method is overridden in the child class. If so I don't know why you are walking the class hierarchy. If the method exists then you could just use :
return (loMethodInfo.ReflectedType = loMethodInfo.DeclaringType)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform