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

Robert Jordan robertj at gmx.net
Tue Dec 11 18:15:56 EST 2007

cafeaunet wrote:
> Hello,
> I notice that some methods in Mono ( 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.


More information about the Mono-list mailing list