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

前端 未结 5 721
渐次进展
渐次进展 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:21

    I don't intend this as a serious answer but among the pro's, as you have discovered, is that it's very simple to get to your entities.

    Among the con's is that some people hate static classes so much that they will not hire you because you've used them. http://thegrenade.blogspot.com/2009/01/static-methods-and-classes-are-always.html

提交回复
热议问题