Skip to main content

Add parameter to interface member

PropertyValue
IdRR0213
Applicable Syntaxmethod declaration, indexer declaration
Syntax Spanmethod name or 'this' keyword
Enabled by Default✓

Usage​

Example #1​

before.cs
interface IFoo
{
void Bar(object p);
}

class Foo : IFoo
{
public void Bar(object p, object p2)
{
}
}
after.cs
interface IFoo
{
void Bar(object p, object p2);
}

class Foo : IFoo
{
public void Bar(object p, object p2)
{
}
}

Configuration​

roslynator_refactoring.add_parameter_to_interface_member.enabled = true|false