. NET Basic Learning (1)

Source: Internet
Author: User

"The book to Time to hate less", for many people now is indeed the case, I myself is so, school did not learn, and now come out to work when learning not to seriously learn is a wrong thing. But the time can not flow, missed the missed, we can not be quiet in the past, we have to look forward to, since that is not good, work to rely on it to maintain a livelihood, we had to work while learning, the following is my own in the study is some notes, write bad hope you point out, email [email Protected].

One, the delegation of a

An anonymous method is actually a delegate:

One of the solutions to implement subtraction for 2 numbers is through delegation.

Above is the Add method assignment to the Caculatedel type of the delegate variable

The following is the implementation of the anonymous method

This will be more flexible after writing, do not need to write the method of "dead" beforehand.

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.