Internal vs. Private Access Modifiers

后端 未结 7 1419
野性不改
野性不改 2020-11-27 09:30

What is the difference between the internal and private access modifiers in C#?

7条回答
  •  温柔的废话
    2020-11-27 09:47

    Private members are accessible only within the body of the class or the struct in which they are declared.

    Internal types or members are accessible only within files in the same assembly

提交回复
热议问题