Skip to content

Permit init-only initialization in attribute usages#3425

Merged
jaredpar merged 1 commit intodotnet:masterfrom
alrz:patch-2
May 5, 2020
Merged

Permit init-only initialization in attribute usages#3425
jaredpar merged 1 commit intodotnet:masterfrom
alrz:patch-2

Conversation

@alrz
Copy link
Member

@alrz alrz commented May 4, 2020

@alrz
Copy link
Member Author

alrz commented May 4, 2020

It's common to use { get; set; } properties in order to use named paramters in attributes which shouldn't be needed when initonly is available.

@jcouv
Copy link
Member

jcouv commented May 4, 2020

I like it. I'll let @jaredpar confirm.

@jaredpar
Copy link
Member

jaredpar commented May 5, 2020

Yes this seems completely reasonable.

@jaredpar jaredpar merged commit e006b48 into dotnet:master May 5, 2020
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

Successfully merging this pull request may close these issues.

4 participants