#if Not Debug in c#?

前端 未结 5 1343
生来不讨喜
生来不讨喜 2020-12-24 11:07

I have the line in vb code:

#if Not Debug

which I must convert, and I don\'t see it in c#?

Is there something equivalent to it,

5条回答
  •  情深已故
    2020-12-24 12:01

    I think something like will work

     #if (DEBUG)
    //Something
    #else
    //Something
    #endif
    

提交回复
热议问题