why does c# yield c++ impression 'friend' keyword?


the allows class a suitable class b the friend. allows class b opening private/protected members class a.



i've never review anything since left out c# (and vb.net). many answers seem observant useful biased c++ there good reasons it. trust i'd have agree.



another seems me unequivocally seeking something identical friend c# application. while answers generally revolve around nested classes, doesn't seem definitely glorious controlling friend keyword.



the uncanny uses frequently via the examples.



so summary, since friend blank c#, "best practice" proceed (or ways) simulating c#?



(by way, internal keyword not same thing, allows all classes within whole public opening internal members, while friend allows give certain category complete access exactly one class)



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?