In your experience, what do you see (or hear) as common misunderstandings about how things work in .Net?
I'm not thinking of common programming mistakes, such as
throw ex
to rethrow an exception, but rather common misconceptions about how the framework works such as:
the [Serializable]
attribute is required for xml serialization, or that the default object.GetHashCode()
implementation somehow considers all private fields in your type.
One of the reasons I am asking this question is that I spend a lot of my professional time mentoring junior developers and I feel it is important to understand where the common misconceptions are. As someone who has used .Net for a long time I am guessing that there is a lot of knowledge I consider to be obvious, but actually may not be. I personally can't remember when I learnt the many nuances of how things work (and, of course, I'm sure I still have many left to learn!).