Missing friend keyword in C#
While I like C#, there are some things missing when I compare it with the C++ world. Today's missing feature is the
friend keyword. It would elegantly solve my current problem. Without it, I'm going to end up with a public contsructor for something that really shouldn't have it.
internal won't work because this class needs to be in a separate assembly.
I add that to some other things I wish I really had in C#
- Multiple inheritance
- const keyword
- Believe it or not, I like the explicit nature of pointers. It's strange getting used to what's really happening in memory and figuring out what methods are doing and "trusting" the language to do what you want. A couple times I've been burned.
- There was something else...and I forget what it was right now...