Add parameter to interface member
| Property | Value |
|---|---|
| Id | RR0213 |
| Applicable Syntax | method declaration, indexer declaration |
| Syntax Span | method 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