Is changing protected
to protected internal
a binary-breaking change for users outside the assembly?
#77157
-
Hello, I am maintaining a library and I want to change a method from However, I wanted to make sure it did not break binary compatibility. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I do not expect that it is either a source or binary compatible change: https://sharplab.io/#v2:C4LglgNgPgAgTARgLACgYGYAE9MGFMDeqmJmADgE4D2wApgMZ0AmmYAdnRWwIYSYBuYCsACuvbABZMAWQAUASkLFSAX1RqUqDNjiYAIphB4lKUuWp1GtFlX60KFME1qSZCk2Y0qgA===. If the method is non-virtual, then it's probably fine, but if it can be overridden, then this is a breaking change in all aspects. |
Beta Was this translation helpful? Give feedback.
Alright, I wrote a quick test program, and it appears I am incorrect, and the guidance is correct. It is not a source or binary break.