[Mono-list] Overridden method calling base method (and doing nothing else)

shawn vose 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 (1.2.5.1) 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
> especially
> > 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.
>
> Robert
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071211/0bb5f9c5/attachment.html 


More information about the Mono-list mailing list