Yes, C++ had a friend concept, and this is exactly why it isn't called
"friend" in C#---so it wouldn't confuse C++ programmers who would expect
friend to work like it does in C++.
Friend in VB.NET works like Friend in VB6, which is also how internal works
in C#.
And to Nick: I wouldn't say "protected internal" is the same as VB's
"Friend" because VB.NET also has a combination of "Friend" and
"Protected" --- "Protected Friend".
--Matthew W. Jackson
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:eO**************@TK2MSFTNGP09.phx.gbl...
I would say C# is more like C++ then C. C++ had a friend concept.
"Nick Harris" <nh*****@VizSoft.net> wrote in message
news:#V**************@TK2MSFTNGP09.phx.gbl... Because C# uses more c-like terminology. See "Protected Internal"
Nick Harris, MCSD
http://www.VizSoft.net
"Steve" <an*******@discussions.microsoft.com> wrote in message
news:OY**************@TK2MSFTNGP12.phx.gbl... I'm just curious, why did give VB.Net a Friend keyword but not C#?