AutoInterface icon indicating copy to clipboard operation
AutoInterface copied to clipboard

Protected members of interface

Open tecAmoRaller opened this issue 4 months ago • 0 comments

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?

tecAmoRaller avatar Oct 10 '25 12:10 tecAmoRaller