>>Of course, if friendship is necessary, C++ compiles to the CLR as
>>well.
>>:-)

Managed classes  donot support friendship.

-----Original Message-----
From: Peter Waldschmidt [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] How do you declare friendship in C#?


There is no such thing as friendship in C#.  The closest you can come is
to use the internal modifier.  Internal variables are public within the
assembly, but private or protected outside the assembly.

Of course, if friendship is necessary, C++ compiles to the CLR as well.
:-)

Peter

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