[C#-2] The difference between delegate and delegate

Source: Internet
Author: User

Question: The difference between delegate and delegate

Analysis:

I believe many friends in the development process have encountered the above questions, in order to solve this question, recently consulted a lot of posts, and finally in the official MSDN document found the answer.

Here are the official document link addresses for delegate and delegate

Delegate: https://msdn.microsoft.com/zh-cn/library/ms173171.aspx

Delegate: Https://msdn.microsoft.com/zh-cn/library/system.delegate (v=vs.110). aspx


Simply put: delegate is a class, base class, abstract class. Delegate is a key word

A bit deeper, you can understand this:

  class is the base class for the delegate type.   However, only systems and compilers can be explicitly from  , delegate . Span style= "COLOR: #2a2a2a" >  class or   multicastdelegate The   class derives.   In addition, it is not allowed to derive new types from delegate types.   delegate   class is not a delegate type, which is used to derive a delegate type.

Most language implementations Delegate keywords, the compilers of these languages can be MulticastDelegate class, so the user should use the language provided by the Delegate key word.



[C#-2] The difference between delegate and delegate

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.