Skip to main content

Add member to interface

PropertyValue
IdRR0195
Applicable Syntaxmethod, property, indexer, event
Syntax Spanidentifier
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