日期:2014-05-18  浏览次数:20755 次

在c#中有 #if...#else...#endif 这种语法吗?(在线等)
如题

------解决方案--------------------
当然有了,比如如下的语句:
#if DEBUG
Console.WriteLine( "Debug ");
#else
Console.WriteLine( "Else ");
#endif

------解决方案--------------------
http://msdn2.microsoft.com/en-us/library/4y6tbswk(VS.80).aspx
------解决方案--------------------
条件编译