Skip to content

Protected members of interface #27

@tecAmoRaller

Description

@tecAmoRaller

Nice product.

If my interface has protected property, Autointerface generate invalid code

interface ITestInterface
{
    protected int Data { get; }
    int DataPublic => Data + 1;
}

internal sealed partial record TestClass([property: AutoInterface] ITestInterface inner);
Image

Mabye we want ignore protected properties?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions