Total .NET Analyzer Rule Documentation  

EmptyStatement Rule

Remove empty statements.

Remarks

In C#, you can inadvertently create empty statements by having a semicolon without preceding code. For instance, the following line of code has a superfluous semicolon:


int I = 3;;

Resolution

Although it has no effect on code performance, the empty statement (or extra semicolon) serves no purpose, and should be removed.

See Also