Static extension methods in C# 4.0
as Won't Fix
11/4/2008 9:31:37 AM
This feature really improves the readability and discoverability of the code as well as the logical structure of class members.
This might not be an issue for instance methods where it makes more sense to use the method on the instance.
But for classes like Math, there is no alternative. In these cases, it makes more sense to call the method from the class itself.
It's just what one expects logically instead of:
You could have custom static classes like MathHelper, but this doesn't blend nicely with the code as a whole.
The same arguments were presented for instance extension methods where people could use custom static classes instead of calling their method directly on the instance, but the win point for this was that it improved readability which it really did. Same goes for static extension methods IMO.
Please consider this feature.
What do you guys think?