-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Convert public field to property #14196
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
Conversation
|
Breaking change in public API? |
Fix SA1623
Yes and probably unacceptable, but I would like the change to be considered. |
|
|
||
| /// <summary> | ||
| /// Gets or sets a value indicating whether Server Manager is enabled. | ||
| /// </summary> |
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.
I am concerned about backward compatibility when converting a public field into a public property.
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.
Yes, I think we break a binary compatibility.
|
@xtqqczze I think we can not approve the change. If you want force the rule please use local suppression for IsServerManager. |
|
unacceptable breaking change, closing. |
Convert public field
PSSessionConfigurationData.IsServerManagerto property.Fix CA2211: Non-constant fields should not be visible.
Breaking change.