C# Empty Statement(C# 空语句)
问题描述
C# 语言规范定义了 empty-statement 语法产生,它允许我做这样的事情:
The C# language specification defines the empty-statement grammar production, which allows me to do something like this:
static void Main(string[] args)
{
; ; ;
}
为什么 Microsoft 会在 C# 语言中包含这种语法生成?它有什么有用的用途吗?
Why would Microsoft include this grammar production in the C# language? Does it have a useful purpose?
推荐答案
while (GetWhitespace(textStream))
;
这篇关于C# 空语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!