1.a person appointed or elected to represent others
1.transfer power to someone
2.give an assignment to (a person) to a post, or assign a task to (a person)
定義 .Net 中的委托類似于 C 或 C++ 中的函數(shù)指針。使用委托使程序員可以將方法引用封裝在委托對(duì)象內(nèi)。然后可以將該委托對(duì)象傳遞給可調(diào)用所引用方法的代碼,而不必在編譯時(shí)知道將調(diào)用哪個(gè)方法。與 C 或 C++ 中的函數(shù)指針不同,委托是面向?qū)ο蟆㈩愋桶踩模⑶沂前踩摹?委托聲明定義一種類型,它用一組特定的參數(shù)以及返回類型封裝方法。對(duì)于靜態(tài)方法,委托對(duì)象封裝要調(diào)用的方法。對(duì)于實(shí)例方法,委托對(duì)象同時(shí)封裝一個(gè)實(shí)例和該實(shí)