Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow attribute inheritance with AttributeUsage(Inherited = true)) #142

Open
VladCananau opened this issue Mar 20, 2019 · 1 comment
Open

Comments

@VladCananau
Copy link

Hi team,

I'd like to decorate an interface and have the implementation inherit all of the [Arg*] attributes. Is it a design decision for attribute inheritance to not be enabled for the [Arg*] family or just the use case did not come up? -- Cheers

@adamabdelhamed
Copy link
Owner

You should be able to create a base type (interface or class) that has attributes on it and then have PowerArgs respect those attributes on a derived class. At least I think. If it's not working let me know and I'll take a look.

Thanks,
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants