General information
Category:
The Mere Mortals .NET Framework
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only