Delegation and events-chat series (1)

Source: Internet
Author: User

. Net developers should be familiar with delegation and events, and their application in the program is still quite extensive. These two concepts are both familiar and unfamiliar to friends who have been in touch with or have not been in touch for a long time. The reason for familiarity is that it is ubiquitous, while the reason for strangeness is that its understanding remains on the surface and cannot be further understood.

This is the first part of the chat series, so I don't plan to talk about the delegation and events in C #. I will give an example in my daily life, let everyone understand and review the meaning and usage of delegation and events. <This series is my personal understanding of delegation and events. You are welcome to join us!>

Have you ever stayed in the dormitory and played games to help bring meals to your classmates? Have you ever had the experience of sending parcels to your classmates? During the Spring Festival, have you ever had the experience of getting train tickets from friends and family? In the scenario described above, we ask others to help us complete an event, rather than doing it ourselves. I think you can understand the meaning and role of delegation in real life.

Some time ago, Li mouzhi, who was so popular, was "having a sexual relationship in turn". I think everyone is familiar with it! For this incident, I can only express my feelings with deep sorrow. I think everyone knows that a flight attendant calls an Iphone while it is charging. Everything above has its occurrence time, location, characters and other information, which is an event in real life. At this point, if C # Is left blank, I think everyone should be clear about the concept of delegation and event! After Li Tianyi's incident, his mother found two lawyers to defend his innocence, NND. The two lawyers are entrusted with their mother and are the principal of Li Tianyi. In the case of Li Tianyi, there are both events and commissions. This is my understanding of events and commissions in real life. In the next article, Series 2 describes the delegation and events in the C # language from the perspective of the C # language and the Code as the basic starting point.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.