Friend

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

The closest thing that you have in C# is the internal keyword, which
means that any other type in the same assembly can access the member/type.

Hope this helps.
 
There are no 'friend' functions in C#.

internal:
Access is limited to the current project.

protected internal:
Access is limited to the current project or types derived from the
containing class.
 

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.

Ask a Question

Back
Top