I am writing a statement and it compiles, but the compiler [VS] never tells me that I put the semicolon two times.
This means in ASP.NET MVC 3
return
At the moment no specific reason to write a double semicolon comes to my mind. As far as I know Visual Studio only complains about semicolons that can lead to a unwanted behavior, like the following snippet:
if (true)
;
As the semicolon is an empty instruction, the whole if-clause is rendered useless. The Visual Studio complains about all such constructs (using, for, foreach, and so on) without brackets around them.
So the following code is fine for the VS:
if (true)
{
;
}