Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dense Newbie
Message
De
02/12/2003 19:09:39
Del Despain
Colorado Plateau Associates
Hurricane, Utah, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
00854881
Message ID:
00855254
Vues:
20
Good tip! I think I was shown this once, but it fell off the stack.

This leads to a question: Although the jump-start samples don't do this, would it be a good idea when overriding essentially empty methods, such as MM hook methods, to always call the base method anyway just in case the method is overridden later in a parent or in case the parent is replaced with a different class or another level is slipped into the inheritance chain?

>One suggestion, when you want to override a method of the parent class, type "override" and press space then select the method you want to override. This way, the corrent method will be copied down along with the call to the base method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform