-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Replace resource constants with properties in WindowsBase #6060
Replace resource constants with properties in WindowsBase #6060
Conversation
…ed by WindowsBase" This reverts commit 86ef9fc.
I changed shared files to use properties even in projects that do not use properties by adding properties manually to SR. I think this is better than my initial approach of using nameof because it makes it easier to remove workaround when changing other projects to use properties because the properties will conflict with the generated properties. I think that this PR is now ready to review. This PR should have a pretty low risk of breaking something. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contributes to #1
Depends on #6059
Description
Replace the use of resource constants with properties in WindowsBase. This follows the standard of other .Net projects, like dotnet/runtime.
There are a bunch of files that are shared with other projects. I temporarily changed the use of constants with using nameof of properties in WindowsBase in this commit: 86ef9fc.
Customer Impact
None.
Regression
No.
Testing
I tested a few resources and made sure that the generated code in the property getter is the same as the original code.
Risk
None.