Add member to interface
Property | Value |
---|---|
Id | RR0195 |
Applicable Syntax | method, property, indexer, event |
Syntax Span | identifier |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
public class Foo : IFoo
{
public void Bar()
{
}
}
public interface IFoo
{
}
after.cs
public class Foo : IFoo
{
public void Bar()
{
}
}
public interface IFoo
{
void Bar();
}
Configuration
roslynator_refactoring.add_member_to_interface.enabled = true|false