1.词汇
- delegate type 委托类型
- delegate instance 委托实例
- invoke 调用
2.例句
-
We’ll start our tour of delegates with the four absolute basics, without which none of the rest would make sense.
在开始我们的委托之旅之前,我们需要先了解4个基本条件,它们缺一不可。
-
In order for a delegate to do anything, four things need to happen:
(1)The delegate type needs to be declared.
(2) The code to be executed must be contained in a method.
(3) A delegate instance must be created.
(4) The delegate instance must be invoked.要实现委托,需要做4件事:
(1)委托类型需要先声明;
(2)要执行的代码需要包含在一个方法内;
(3)需要创建委托实例;
(4)委托实例需要被调用。