net_automatic_interface
net_automatic_interface copied to clipboard
Add support for `initial` keyword
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; }
}