How do you declare friendship in C#?

In C++ I am use assigning friendship to other classes like this:

    class Child;

    class Parent
    {
        friend Child;
        ...
    };

Now the class Child can access all of the private fields of Parent.
I have poured over the C# documentation and can't see how to do
this in C#.

Thanks...David

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to