The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

sandeep_muley (1) [Avatar] Offline
hi ,
help is required i have some code in C++ which contains the friend class implemenation so i have write the wrapper in managed c++ to access that one from c# so can any body help me out with simple example for friend class.
thanks in advance.
Nish (16) [Avatar] Offline
Re: How to implement Friend class in Managed C++
Hey Sandeep,

C++/CLI does not support friend classes (you still can use it for your native types of course). An alternative is to use internal classes (that are only visible within their containing assembly).