C#英語筆記Day 42

1.詞匯

  • delegate type 委托類型
  • delegate instance 委托實(shí)例
  • invoke 調(diào)用

2.例句

  • We’ll start our tour of delegates with the four absolute basics, without which none of the rest would make sense.

    在開始我們的委托之旅之前,我們需要先了解4個基本條件,它們?nèi)币徊豢伞?/strong>

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

    要實(shí)現(xiàn)委托,需要做4件事:
    (1)委托類型需要先聲明;
    (2)要執(zhí)行的代碼需要包含在一個方法內(nèi);
    (3)需要創(chuàng)建委托實(shí)例;
    (4)委托實(shí)例需要被調(diào)用。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容