Feature Request: Init only setters
Closed this issue · 1 comments
andi0b commented
This library seems not to support init only setters from c# 9
how to reproduce
Tested on 1.0.5 on net6.0
Given this code:
[InterfaceGenerator.GenerateAutoInterface]
class Class : IClass
{
public string Property { get; init; }
}
AutoInterface creates this interface:
internal partial interface IClass
{
string Property { get; set; }
}
but it should be:
internal partial interface IClass
{
string Property { get; init; }
}
daver32 commented
I've added support for that now, check out the newest version