2 ms·
In a language like C# you still need to put those static methods in a class. Even extension methods need to go in a class (albeit a static class). It would be
by LandR 8y ago
In a language like C# you still need to put those static methods in a class.
Even extension methods need to go in a class (albeit a static class).
It would be nice if you could define functions that lived in a namespace.
- sparkie 8y agoJust treat the static class with static only member as if it were a namespace. C# now even has support for omitting the need to type the class name because you can import it as if it were a namespace (`using static`). Seems like a trivial complaint.