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

Code inspection: Redundant 'partial' modifier on type declaration

Last modified: 11 February 2024

JetBrains Rider detects types declared as partial but consisting of only one part. If no other parts of the class are found in any file within the project, JetBrains Rider suggests removing the partial modifier from the class declaration.

Alternatively, you can create more parts of the class by invoking the Extract Members to Partial refactoring on the class name. The refactoring will help you create a new part of the class and move selected members there.