Closed DeagleGross closed 1 year ago
looking good; tiny nit on the spacing - petty but worth fixing; I suggest we merge after that, but a possible follow-up / extension (separate PR) would be to maybe take the same idea but generalized to include factory methods, i.e.
[DapperAot] public static Foo Create(int id, DateTime when, string whatever)
- very similar rules, but different nuances - for example, we can't support init-only members after a factory, but we can still support settable props, i.e.var obj = Foo.Create(value0, value2, value1); obj.Blah = value4;
thoughts?
sure, created an issue for follow-up: #34
Closes #28