What is the equivalent of a 'friend' keyword in C Sharp?

前端 未结 7 1195
既然无缘
既然无缘 2021-02-18 15:52

What is the equivalent of a \'friend\' keyword in C Sharp?

How do I use the \'internal\' keyword?

I have read that \'internal\' keyword is a replacement for \'fr

7条回答
  •  一整个雨季
    2021-02-18 16:16

    Splitting a big class in two partial class-files can achive the desired friend-effect. It is not equivalent, but it works in some cases.

提交回复
热议问题