Does C# allow double semicolon ; ; if so, are there any special ways?

No, a double semi-colon is never required. I’m slightly surprised that the compiler doesn’t complain that it’s an unreachable statement, but apparently it’s legal. It won’t do any harm, but equally it’s not a good idea.

Leave a Comment