JetBrains Rider 2026.1 Help

Code inspection: Method with optional or 'params' parameter is hidden by overload

This inspection reports a method overload whose optional parameter is hidden by another overload. That makes the optional parameter redundant, because a call that omits it resolves to the other overload instead.

Example

class C { void Log(string message) { } void Log(string message, int level = 0) { } }
class C { void Log(string message, int level = 0) { } }

Quick-fix

There is no dedicated quick-fix for this inspection. A typical correction is to remove the redundant overload or redesign the overload set so calls are not ambiguous or hidden.

01 April 2026