What is the difference between an event, an event, and a delegate?
(1) The event is the encapsulation of a delegate, which can be understood as a special delegate.
(2) In fact, there are two methods in the event (i.e. add_event () and Remove_event ()) and a private delegate variable, which is the merging and removing of the private delegate variable, which is actually a call event when the + = of the event is called add_ The event () method, the same-= call is the Remove_event () method.
(3) The event can only add new response methods from outside the object and delete the known response method, but not the initiative to trigger the event and get other registered response methods and other information. These restrictions cannot be made if the public delegate are used, which means that the event restricts the delegate and makes the delegate more convenient to use. It is also said that the event is a commission of castration, probably also this meaning.
C # basic----> Events