DEV Community

Discussion on: When to use static and when not to in C#

davidkroell profile image
David Kröll

I personally never use static except for extension methods. In my opinion it just makes the code less concise. It is also bad for maintainability. The performance point of view is also no good argument to me, because the impact is so small.

I typically use DI for every use-case, so static is barely required (except extension methods).

shariaretanvir profile image
shariaretanvir Author

Yes. Singleton class are good for those kind of scenario.