C#英语笔记Day 42

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)委托实例需要被调用。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。