net_automatic_interface icon indicating copy to clipboard operation
net_automatic_interface copied to clipboard

Add support for `initial` keyword

Open WizzardMaker opened this issue 1 year ago • 0 comments

I'm using the initial keyword in some of my properties to limit the setting of them. This generator replaces initial with set, which is not the desired behaviour

Code:

public class X {
    public uint Id { get; init; }
}

Generated interface:

[GeneratedCode("AutomaticInterface", "")]
public partial interface IPlayer
{
    /// <inheritdoc />
    uint Id { get; set; }
}

WizzardMaker avatar Apr 06 '24 22:04 WizzardMaker