ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: Redundant type declaration body

Last modified: 14 May 2024

If you're using the marker interface pattern in your code, C# 12 allows a semicolon ; instead of the empty body { } for empty declarations.

This inspection reports places where this new syntax can be used, and suggests a solution-wide quick-fix: