I was reading about delegates and events on this webpage to get a better understanding of them and how they relate to each other. While reading, I came across this statement:
That goes against the principle of locking on privately held references to avoid accidental deadlocks.
The author was referring to a lock with a reference to this object in the add and remove operations of an event.
Further details weren't provided about the principle he was referring to, maybe because it's supposed to be obvious. In any case, it wasn't obvious to me. Can someone enlighten me on this and provide some more detail?