.net - Does C# allow double semicolon ; ; if so, are there any special ways? -
i writing statement , compiles, compiler [vs] never tells me put semicolon 2 times.
this means in asp.net mvc 3
return json(mydata);; return json(mydata);
both of them compile, first wrong in design pattern. why doesn't tell me 2 semicolons.
if there no reason use 2 semicolons, why doesn't show error?
if there special use of it, please show me 2 semicolons required write statement in c#.
no, double semi-colon never required. i'm surprised compiler doesn't complain it's unreachable statement, apparently it's legal. won't harm, equally it's not idea.
Comments
Post a Comment