#if 跟if有什么区别,什么时候用#if?

freedom36 2009-05-01 08:26:23
#if 跟if有什么区别,什么时候用#if?
...全文
94 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pricks 2009-05-01
  • 打赏
  • 举报
回复
学习ing。
宝_爸 2009-05-01
  • 打赏
  • 举报
回复
#if --

#if lets you begin a conditional directive, testing a symbol or symbols to see if they evaluate to true. If they do evaluate to true, the compiler evaluates all the code between the #if and the nearest #endif directive.
叫做预编译。会影响之间的代码被编译或者不被编译。

if条件判断。这个是代码,。。。。太基本了,没办法解释了。

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧