当前位置:网站首页>C#入门系列(二十九) -- 预处理命令
C#入门系列(二十九) -- 预处理命令
2022-07-24 11:28:00 【InfoQ】
概念
常用预处理指令
语法规则
- 预处理指令总是占用源代码中的单独一行;
- 预处理指令不需要使用分号作为结尾标志;
- 预处理指令必须以#字符和预处理指令名称开头,在#字符之前和#字符与指令之间可以有空格
- 包含#define、#undef、#if、#elif、#else、#endif或#line指令的源代码行可以用单行注释结束。
- 预处理指令既不是标记,也不是C#句法文法的组成部分。但是,可以用预处理指令包含或排除标记序列,并且可以以这种方式影响C#程序的含义。
预处理表达式
边栏推荐
- Hcip OSPF interface network type experiment day 4
- Introduction to Devops and common Devops tools
- DevOps及DevOps常用的工具介绍
- 性能测试总结(一)---基础理论篇
- Blue Bridge Cup provincial match training camp - Calculation of date
- In BS4.String and Difference between text
- 链表——剑指offer面试题 02.07. 链表相交
- iMeta观点 | 短读长扩增子测序是否适用于微生物组功能的预测?
- Sentinel vs Hystrix 限流对比,到底怎么选?
- 哈希——18. 四数之和
猜你喜欢

Fifty lectures of Euler (I)

Talk about software testing - automated testing framework

Jmeter-Runtime控制器

iMeta观点 | 短读长扩增子测序是否适用于微生物组功能的预测?

使用Prometheus+Grafana实时监控服务器性能
What is cloud native? Why is cloud native technology so popular?

Shell script "< < EOF" my purpose and problems

Ctfshow ThinkPHP topic 1

2022, the average salary of the soft tester, after reading it, I was instantly cool

Directional crawling Taobao product name and price (teacher Songtian)
随机推荐
High speed ADC test experience
[deserialization vulnerability-01] Introduction to serialization and deserialization
运算放大器 —— 快速复苏笔记[贰](应用篇)
视频回放 | 如何成为一名优秀的地学和生态学领域的国际期刊审稿人?
高频笔试题(蔚来)
基于NoCode构建简历编辑器
哈希——349. 两个数组的交集
Database operation through shell script
Semaphore details
PDF处理还收费?不可能!
Fastcgi operation principle and PHP FPM parameter configuration
Code of login page
ctfshow ThinkPHP专题 1
系统管理员需知的 16 个 iptables 使用技巧
Xilinx FPGA soft core development process
Fifty lectures of Euler (I)
Leetcode 257. all paths of binary tree
Only "a little bit", why do developers look up to you?
Leetcode 112. path sum
Blue Bridge Cup - binary conversion exercise