Sometimes I override methods in base classes. Sometimes I even override them with an empty method, because what I want is to prevent the behavior.
In the past I would write something like this to show the intent of bypassing the base method:
protected override void OnMouseUp(MouseEventArgs e)
{
// base.OnMouseUp(e);
}
(I know a commented line of code is a bad thing. I used to do it)
But I want to do better:
- How do I document the intention of the override? specifically:
- What do I write in the override's XML (
<summary>
?) documentation?