Closed SergerGood closed 5 months ago
How about using generic attributes. For example for a ClassHandlerAttribute.
Then instead of:
[ClassHandler(typeof(PersonClassHandler))] public class Person { public long Id { get; set; } public string Name { get; set; } }
we can use:
[ClassHandler<PersonClassHandler>] public class Person { public long Id { get; set; } public string Name { get; set; } }
The only limitation is that this feature is only available for net 7 or greate.
How about using generic attributes. For example for a ClassHandlerAttribute.
Then instead of:
we can use:
The only limitation is that this feature is only available for net 7 or greate.