Skip to content

Address Attribute Usage in Inheritance #25

@JasonBock

Description

@JasonBock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions