ReSharper 2026.1 Help

Code inspection: Redundant 'virtual' modifier

This inspection reports the virtual modifier when it is unnecessary. A common case is a default interface member with a body, where virtual does not add anything and can be removed.

Example

interface ILogger { virtual void Log() { } }
interface ILogger { void Log() { } }

Quick-fix

The quick-fix removes the redundant virtual modifier.

13 April 2026