C# access modifier for exposing class only within namespace

前端 未结 3 346
情书的邮戳
情书的邮戳 2020-12-18 17:46

In java you have package level protection that ensures classes are only usable within the package.

Namespaces in C# act more or less like packages. But C# does not

3条回答
  •  隐瞒了意图╮
    2020-12-18 18:14

    In .NET there are assemlies(dll or exe files), you can use internal modifier to limit access only within the same assembly

提交回复
热议问题