Skip to content

RCS1060 fires for partial classes in the same file #1779

Description

@brckelly

I have a pattern my company has used for many years where when we implement an interface we defined it all in a separate partial class in the same file.

public partial class Foo
{
   // other members go in this partial class
}

public partial class Foo : IDisposable
{
   // only IDispoable members go in this partial class
   public void Dispose() {}
}

This pattern however triggers RCS1060, which I don't think it should. It is the same type being declared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions