Steve,
*Friend* keyword in VB is not the same as *friend* in c++. .NET doesn't
support *friend visibility* and it is not a matter of language. VB *Friend*
is equivalent to *internal* in c#
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".
X-No-archive: yes
thanks guys, I re-read the docs; it is the same as c# internal.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.