Internal vs. Private Access Modifiers

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

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

相关标签:
7条回答
  • 2020-11-27 09:58

    internal is for assembly scope (i.e. only accessible from code in the same .exe or .dll)

    private is for class scope (i.e. accessible only from code in the same class).

    0 讨论(0)
提交回复
热议问题