Is there any good way to do friend class in C#?
- by carter-boater
For example,
I want my Class1 to have a friend Class2, so that ONLY Class1 itself and its friend Class2 can set a some certain property in Class1? This concept exists in C++, but I don't know how to do it in C#.
Thank you guys