| Home | Biography | Speaking | Articles | Books | Music |
When I reference a method in C#, I always qualify it with its point of origin. Meaning if I call an instance method, I do this:
this.CallMe();
A static method is declared this way:
BigDescriptiveClassName.CallMe();
Now, I know that some people would say this is excessive but I think this makes the code more readable. But anyway … here’s my point.
I’d love to be able to declare the static method this way:
class.CallMe();
There’s a keyword for the instance reference … can I have a keyword for the class as well? “class”, “static”, whatever, I don’t really care, just something that takes less keystrokes.
kthxbye :)
Published: 11.03.2008 08:38:30 AM CST