C# Empty Statement

后端 未结 13 2350
情深已故
情深已故 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:56

    if (b1)
       if (b2) else;
    else
       //code
    

    withoud this ; this will be painful. but this is not best way to write ifs also. but acceptable.

提交回复
热议问题