是否可以在C#中在调试设置中运行特定的行代码,以及在发布设置中运行其他代码.
if #debug //run some lines of code else // run different lines of code
c# silverlight visual-studio-2010
c# ×1
silverlight ×1
visual-studio-2010 ×1