A Bit of Syntatic Sugar for C# Please

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:


A static method is declared this way:


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:


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 :)

* Posted at 11.03.2008 08:38:30 AM CST | Link *

Blog History