F
Frank Rizzo
In some examples with inheriting, I see the overloaded function always
call its base. For instance, in this case where the ListView control is
being extended.
public class ListViewEx : System.Windows.Forms.ListView
{
protected override void OnColumnClick(ColumnClickEventArgs e)
{
...various code to extend the control
base.OnColumnClick (e);
}
}
What is the significance of the base.OnColumnClick(e)? Is it needed or
is it superfluous? In some examples I see it, in others I don't. Is
there a rule for this?
Thanks.
call its base. For instance, in this case where the ListView control is
being extended.
public class ListViewEx : System.Windows.Forms.ListView
{
protected override void OnColumnClick(ColumnClickEventArgs e)
{
...various code to extend the control
base.OnColumnClick (e);
}
}
What is the significance of the base.OnColumnClick(e)? Is it needed or
is it superfluous? In some examples I see it, in others I don't. Is
there a rule for this?
Thanks.