Is there any good way to do friend class in C#?

Posted by carter-boater on Stack Overflow See other posts from Stack Overflow or by carter-boater
Published on 2010-05-11T20:19:46Z Indexed on 2010/05/11 20:24 UTC
Read the original article Hit count: 364

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about friend

Related posts about class