[Mono-list] Overridden method calling base method (and doing nothing else)
etc.skel at gmail.com
Tue Dec 11 21:46:34 EST 2007
Not trying to fire anyone up just curious and ignorant.
The unanswered part of cafe's post of "Wouldn't such methods just slow down
execution?" to me is the most important. Is mono restricted from making an
improvement on a standard?
On Dec 11, 2007 6:15 PM, Robert Jordan <robertj at gmx.net> wrote:
> cafeaunet wrote:
> > Hello,
> > I notice that some methods in Mono (220.127.116.11) override a base method, and
> > just call the base method inside the overridden method. For example, the
> > method AppendChild in the class System.Xml.XmlAttribute simply calls
> > base.AppendChild (and does nothing else). I notice this behavior
> > in .NET 2.0 methods.
> > What is the rationale for such methods? It seems like these overridden
> > methods are simply not needed. Wouldn't such methods just slow down
> > execution?
> They are for API compatibility. If MS overrides a method,
> we have to do it as well, even if our implementation details
> do not need the overridden method.
> Mono-list maillist - Mono-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list