Static classes in C#, what's the pros/cons?

前端 未结 5 713
渐次进展
渐次进展 2021-01-13 12:23

I am programming a small game for my school assignment, the game is a simple 2D game with monsters, items and bullets. Basically you run around and tries to collect all the

5条回答
  •  囚心锁ツ
    2021-01-13 13:05

    One advantage of static classes is that it is the only place you can define extension methods.

提交回复
热议问题