Thanks for the info guys. All makes sense.
-Andy
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP************************@msnews.microsoft.c om...
Arne Vajhøj <ar**@vajhoej.dkwrote:
Of course.
Due to the fact that static methods can be called
"on instances", then it has to be this way.
Fortunately, C# prevents you from calling
someInstance.StaticMethod();
but of course you can do
StaticMethod();
from an instance method.
It would be possible to allow this and "default" to the instance method
if there were two methods of the same name, because you could always
use the type name to call the static method if necessary.
However, I'm glad that it's disallowed, for the sake of readability.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too