When #if DEBUG runs

后端 未结 7 619
星月不相逢
星月不相逢 2020-12-14 06:03

I have this code in my C# class.

#if DEBUG
        private const string BASE_URL = \"http://www.a.com/\";
#else
        private const string BASE_URL = \"h         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 06:53

    VS 2017 actually sense the active configuration and for example will gray out the debug condition if the release configuration is selected.

提交回复
热议问题