C# Empty Statement

后端 未结 13 2342
情深已故
情深已故 2020-11-29 12:34

The C# language specification defines the empty-statement grammar production, which allows me to do something like this:

static void Main(string[] a         


        
13条回答
  •  青春惊慌失措
    2020-11-29 12:42

    Why would Microsoft include this grammar production in the C# language?

    the main answer to this question is: C# is C-like language and to make life of different developers easier MS decided to make most basic syntax elements compatible with other c-like languages. and it is good.

提交回复
热议问题