News for hackers. Stuff that matters.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by gameswithgo on Tuesday October 15, 2019 @03:46PM (#21262848)
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.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by rafaelvasco on Wednesday October 16, 2019 @03:56PM (#21274782)
Yeah 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;