How do you use #define?

前端 未结 8 897
鱼传尺愫
鱼传尺愫 2020-12-11 15:03

I\'m wondering about instances when it makes sent to use #define and #if statements. I\'ve known about it for a while, but never incorporated it into my way of coding. How e

8条回答
  •  渐次进展
    2020-12-11 15:19

    Perhaps the most common usees of #define in C# is to differentiate between debug/release and different platforms (for example Windows and X-Box 360 in the XNA framework).

提交回复
热议问题