AutoDeconstruct
AutoDeconstruct copied to clipboard
Address Attribute Usage in Inheritance
What would happen if I did this?
[AutoDeconstruct]
public class Person
{
public uint Age { get; set; }
public Guid Id { get; set; }
}
[AutoDeconstruct(Filtering.Exclude, [nameof(Customer.Age)])]
public class Customer
: Person
{
public uint Age { get; set; }
public Guid Id { get; set; }
}
Should the derive type "include" what is on base types? What really happens? I have no idea here, but I should investigate this and figure out what happens.