Difference between event and delegate
I have no idea if someone is discussing these two differences on the Internet. I have never noticed them before. I really don't know what the difference is?
So goolge found that there were a lot of discussions on the two online. Someone even took him to the interview questions. I was wondering if the examiner asked this question during my interview. However, this does not prevent him from being used. Is this Examiner a little too boring)
After reading it for so long, roughly speaking. There is no difference between event and delegate at that time. Because the event is like the extension of deletgate at the time. It is widely said that the difference between event and delegate lies in the difference between fields and word attributes.
For example, if you define a private int field, and you are doing get for it, set will make it an attribute .. It is not a suitable analogy for event and delegate. Delegate is equivalent to that field. Event is equivalent to its attribute. At that time, evnet is a restricted delegate ..
I carefully read Jeffrey Richter's book tomorrow.