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 'partial' modifier on type declaration

Last modified: 11 February 2024

ReSharper 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, ReSharper 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.