3 ms·
in C# you can make a static class, and then put functions in it. When you do this, the class is nothing more than a namespace. But the class is already in a n
by gameswithgo 7y ago
in C# you can make a static class, and then put functions in it. When you do this, the class is nothing more than a namespace. But the class is already in a namespace. So you now have a redundant namespace.
It isn't a big deal but its a bit silly to have to do that, when writing static functions.
- rafaelvasco 7y agoYeah I agree. I really like static classes, but I've seen them being overused; As long as it doesn't causes performance problems I'm good with it. In fact calling static methods is faster;