"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.