C# Compiler Directives

后端 未结 4 1496
温柔的废话
温柔的废话 2021-01-18 02:13

I’m looking at some C# code, and have come across the following statement:

#if DEBUG
    // Do something here
#else
    // Do something else
#endif
         


        
4条回答
  •  臣服心动
    2021-01-18 02:33

    On the project, go to Properties -> Build. Under general, you have an option there for defining both DEBUG and TRACE.

提交回复
热议问题