JetBrains Rider
 
2024.1
Get JetBrains Rider
You are viewing the documentation for an earlier version of JetBrains Rider.

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: