#if....#endif的用法(C# 参考)
来源:互联网 发布:网络言情作者排行榜 编辑:程序博客网 时间:2024/06/06 16:36
如果 C# 编译器遇到最后面跟有 #endif 指令的#if 指令,则仅当指定的符号已定义时,它才会编译这两个指令之间的代码。
例:
--在最顶端必须声明自定义的名称DEBUG或者START#define DEBUG //#define START// using System;//... 在你需要的代码中插入#if..#endif,编译器会自动寻找,并执行之间的这段代码#if DEBUG Console.WriteLine("Debug version");#endif#if START Console.WriteLine("START PROCESS");#endif
- #if....#endif的用法(C# 参考)
- #if #endif 的用法
- #if.......#endif的用法总结
- #if 0...#endif #if defined()...#endif #ifdef...#endif #ifndef...#endif 等的用法
- #if 0...#endif #if defined()...#endif #ifdef...#endif #ifndef...#endif 等的用法
- #ifndef #define,#endif 和 #if DEBUG,#endif的用法
- C #if 与#endif 的用法
- #define #if #ifdef #ifndef #endif 的用法
- #ifdef #else #endif #if #ifndef 的用法
- C# #if #else #endif 的使用
- C#的#if false #else #endif
- C#中 #if #endif的使用
- #if 1 #elseif0 #endif用法
- #if endif 的意思
- C# Preprocessor Directives - #If & # endif
- #if,#endif,!defined的意义和用法 C语言
- #if, #ifdef, #ifndef, #else, #elif, #endif的用法
- #if, #ifdef, #ifndef, #else, #elif, #endif的用法
- session依赖于cookie
- Linux磁盘自动挂载
- 转:HTTP协议格式详细说明
- FFServer源码分析
- 也调了下老洞CVE ‐2012‐0158
- #if....#endif的用法(C# 参考)
- cisco 5508控制器
- U盘完美启动WinE6.0成功
- Android软键盘弹出,界面整体上移的问题
- 七夕,你拿什么拯救你的爱人?
- 不依赖任何js框架的日期控件My97 DatePicker——支持小时、分钟、秒钟
- CentOS 6.2 下安装Java jdk 6
- android屏蔽home键
- Install load test reports