Is it a breaking change that modifying the access modifier of a public property?

前端 未结 5 949
太阳男子
太阳男子 2021-02-01 05:22

If I change the access modifier of the setter of a public property from private to public, is that causes any breaking change in the other assemblies that refer it?

5条回答
  •  孤独总比滥情好
    2021-02-01 06:07

    This depends on how strict you want to be about "breaking change".

    One definition is: does it break the build or execution of the referring code.

    Another is, can the other code determine that you made the change.

    By the first definition, this is not a breaking change. By the second definition, it is a breaking change.

提交回复
热议问题