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: Virtual (overridable) member is never overridden (private accessibility)

Last modified: 11 February 2024

This inspection detects methods and properties with the virtual modifier in situations when the containing class has inheritors but the virtual members have no overrides in any of them. To improve code readability, ReSharper suggests making such members non-virtual.