ReSharper 2026.1 Help

Code inspection: Redundant semicolon after type or namespace declaration

This inspection reports a semicolon after a declaration when the declaration already has a body and the extra semicolon has no meaning. The extra semicolon is redundant and can be removed safely.

class C { };
class C { }

This can also apply to namespace declarations and other declaration forms that already provide their own body.

13 April 2026