事件只允许在调用列表中添加和删除方法。
Events only allow to add and remove method from invocation list.
事件添加了一个抽象的抽象层和对委托的保护,这种保护防止委托的委托造成重置委托以及调用列表。
Events adds a layer of abstraction and protection on delegate, this protection prevents client of the delegate from resetting the delegate and invocation list.
我们从那个列表的调用开始。
We started off with a call with that list.
我们从那个列表的调用开始。
We're going to call binary search, it's going to take the list to search and the element, but it's also going to say, here's the first part of the list, and there's the last part of the list, Well, it checks to see, is it bigger than two?
我们将要调用这个二分查找,它将会在列表里面搜索元素,假定这里是,列表的第一个元素,那里是列表的最后一个元素,代码内部到底做了什么?
应用推荐