AutoDeconstruct icon indicating copy to clipboard operation
AutoDeconstruct copied to clipboard

Address Attribute Usage in Inheritance

Open JasonBock opened this issue 4 months ago • 0 comments

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.

JasonBock avatar Sep 01 '25 14:09 JasonBock