delegate是什么意思,delegate中文翻譯,delegate發(fā)音、用法及例句
?delegate
delegate發(fā)音
英:['del?ɡ?t] 美:[?d?l??ɡet]
英: 美:
delegate中文意思翻譯
n.代表
v.派 ... 為代表, 委派, 授權, 委托
delegate詞形變化
動(dòng)詞第三人稱(chēng)單數: delegates | 動(dòng)詞過(guò)去分詞: delegated | 動(dòng)詞現在分詞: delegating | 動(dòng)詞過(guò)去式: delegated | 名詞: delegator |
delegate常見(jiàn)例句
1 、HandupHomworkDelegate ql = delegate(string subject) { Console.───WriteLine("錢(qián)六幫我交" + subject + "作業(yè);");};
2 、Class using the specified object containing the event, event name, and event-handler delegate.───使用包含事件、事件名和事件處理程序委托的指定對象來(lái)初始化。
3 、The declaration supplies the signature of the delegate, and the common language runtime provides the implementation.───聲明提供委托的簽名,公共語(yǔ)言運行庫提供實(shí)現。
4 、The name of the static method that the delegate represents.───委托表示的靜態(tài)方法的名稱(chēng)。
5 、Parameter is not a delegate.───不是委托。
6 、Types. Covariance permits a method to have a more derived return type than what is defined in the delegate.───協(xié)變允許將帶有派生返回類(lèi)型的方法用作委托,逆變允許將帶有派生參數的方法用作委托。
7 、Delegate B: Huh.I work for Teledyne.───啊,我在德立臺公司做事。
8 、If the delegate is associated with a named method, the result-type must match the return type of the method.───如果委托與一個(gè)命名方法相關(guān)聯(lián),則結果類(lèi)型必須與該方法的返回類(lèi)型相匹配。
9 、Delegate names consist of the event sink interface, an underscore, the event name, and the word EventHandler.───委托名稱(chēng)由事件接收接口、下劃線(xiàn)、事件名稱(chēng)和EventHandler一詞組成。
10 、Delegate and observer: Please pay within 10 days upon registration.───代表及觀(guān)察員:請于報名后十天內繳費。
11 、This method applies only if the current delegate represents a static method.───僅在當前委托表示靜態(tài)方法時(shí)才可應用此方法。
12 、Containing protein delegate food is soja and bean products.───含蛋白質(zhì)的代表食物是大豆及豆制品。
13 、Prioritize, delegate, know when to say “no”.───優(yōu)先次序,代表,知道什麼時(shí)候說(shuō)“不” 。
14 、Do not add the suffix Delegate to a delegate.───不要向委托添加Delegate后綴。
15 、An array of objects that are the arguments to pass to the method represented by the current delegate.───作為參數傳遞給當前委托所表示的方法的對象數組。
16 、Phyllis asked me to delegate, and I'm delegating.─── 菲莉絲讓我來(lái)代表 而我在做代表應做的事
17 、If the number of events is large, the storage cost of one field per delegate may not be acceptable.───如果事件的數目很大,則一個(gè)委托一個(gè)字段的存儲成本可能無(wú)法接受。
18 、Delegate Substitutions are welcome at any time up until the date of the event.───參與人員的更換在會(huì )議前的任何時(shí)候都受到歡迎。
19 、The return type and parameter types of a delegate type must be at least as accessible as the delegate type itself.───委托類(lèi)型的返回類(lèi)型和參數類(lèi)型必須至少與委托類(lèi)型本身具有同樣的可訪(fǎng)問(wèn)性。
20 、If you had a subordinate who failed to delegate authority in his department, what would you do?───假如你有一個(gè)部屬在他的部門(mén)中授權失敗,你應該怎么辦?
21 、In each case, a message is displayed when the delegate is invoked.───兩種方法都會(huì )在調用委托時(shí)顯示一條消息。
22 、The IFSC-Judge can delegate this task to the Route Judges.───IFSC裁判可委派路線(xiàn)裁判擔任。
23 、Right-click the domain name that is listed at the top of the snap-in, and then select the Delegate Control option.───右鍵單擊管理單元最上方列出的域名,然后選擇委派控制選項。
24 、If you're unable to attend, a substitute delegate is always welcome at no extra charge.───你若臨時(shí)不能出席,歡迎委派另外一名代表參加,不需額外收費。
25 、With anonymous methods mimic the code layout of a regular method, aligned with the anonymous delegate declaration.───匿名方法模仿普通方法的布局,和匿名委托定義放在一行。
26 、At the time he wrote, the laugh was on the delegate who had determined to abandon English.───他寫(xiě)這段文字的時(shí)候,人們嘲笑的是那位執意要廢棄英文的代表先生。
27 、And we can't have the most handsome delegate not looking his best.─── 可不能讓最帥的代表展現不出最棒的一面
28 、In the next installment, we ll expand on our use of the Business Delegate pattern, making it even more generic.───在下一篇系列文章中,我們將詳述業(yè)務(wù)委派模式的使用,進(jìn)而使它更通用化。
29 、How to delegate the branch manager?───如何委派支行行長(cháng)?
30 、The type of a delegate is defined by the name of the delegate.───委托的類(lèi)型由委托的名稱(chēng)定義。
31 、The delegate in turn calls the bound method.───委托接著(zhù)調用綁定的方法。
32 、If you want to abort the connection, the delegate must throw an exception.───如果您希望中止連接,則該委托必須引發(fā)異常。
33 、But if you don’t learn to delegate you will stagnate your business.───但是如果你不學(xué)會(huì )托付你,你將會(huì )在事業(yè)上停滯。
34 、Anywhere a delegate is expected, a code block can be used instead: there is no need to define a new method.───在本應使用委托的任何地方,都可以使用代碼塊來(lái)取代:不需要定義新的方法。
35 、You Can't Do It All- Learning To Delegate.───你獨自一人不可能完成所有的工作---必須學(xué)會(huì )授權。
36 、Delegate B: Huh. I work for Teledyne. What company are you with?───啊,我在德立臺公司做事。您在那個(gè)公司高就?
37 、Some of you will also delegate with gusto!───你可能也會(huì )樂(lè )意委托別人做事。
38 、A substitute delegate is welcome at any time without extra charge if you are unable to attend.───如果您報名后無(wú)法參加,我們隨時(shí)歡迎您推薦一位參會(huì )者代您參加,并不另外收取費用。
39 、Does he delegate or does he drive people crazy with questions?───會(huì )委讬員工做事還是不停追問(wèn)員工(做事過(guò)程)?
40 、The delegate enables other classes to register for event notification by specifying a handler method.───委托允許其他類(lèi)通過(guò)指定處理程序方法來(lái)注冊事件通知。
41 、A delegate may represent,and vote in the name of,one country only.───一名代表僅能代表一個(gè)國家,并以一個(gè)國家名義投票。
42 、Dynamically invokes (late-bound) the method represented by the current delegate.───動(dòng)態(tài)調用(后期綁定)由當前委托所表示的方法。
43 、It wasn't me, and it wasn't anybody in my delegation.─── 不是我 也不是我代表團的任何人
44 、Some leaders delegate and support subordinates, others are very authoritarian.───一些領(lǐng)導委托并支持下屬,其他的是絕對授權。
45 、Your delegate has nothing to worry about.─── 你的會(huì )議代表完全可以放心
46 、The belligerents should delegate the solution of the conflict to the United Nations.───交戰國應把解決爭執之事授權興聯(lián)合國。
47 、The failure is sporadic if the time between marshaling the delegate and the ensuing callback is short.───如果從封送委托到接著(zhù)發(fā)生的回調之間的時(shí)間很短,則發(fā)生該故障會(huì )的機會(huì )就很少。
48 、Delegate that specifies the method to which the metafile records are sent.───委托,它指定將圖元文件記錄發(fā)送到的方法。
49 、Use delegate inference instead of explicit delegate instantiation.───使用委托定義而不是直接的委托實(shí)例。
50 、They drafted her to serve as their delegate.───他們選她當代表。
51 、You should try to delegate more responsibilities to your employees so you don't have to do as much.───你應該設法把更多的責任分派給你的員工,那么你就不必做這么多了。
52 、Delegate to listen to this event.───委托來(lái)偵聽(tīng)該事件。
53 、It's the price you pay for delegating responsibility.─── 這就是要為責任委托所付出的代價(jià)
54 、The people delegate their power to the Congress.───人民授權予國會(huì )。
55 、He can and should delegate tactical responsibility.───他應負戰術(shù)上的責任。
56 、He was elected as a delegate to the annual conference.───他被選為年會(huì )代表。
57 、I've arranged a trade delegation from my principality.─── 我已經(jīng)從公國調來(lái)了一隊貿易代表
58 、The CIETAC may, if necessary, delegate such power to the arbitral tribunal.───如有必要,仲裁委員會(huì )也可以授權仲裁庭作出管轄權決定。
59 、They chose me as their delegate.───他們選我作為他們的代表。
60 、He is an appointed delegate of the US House of Representatives.───他被選為美國眾議院的代表。
61 、The authority, office, or position of a delegate.───代表的權力、職務(wù)、地位
62 、So, get an intern to do it, delegate.─── 那就找個(gè)實(shí)習生看著(zhù) 學(xué)會(huì )分配任務(wù)
63 、The Delegate class is not considered a delegate type; it is a class used to derive delegate types.───Delegate類(lèi)不是委托類(lèi)型,該類(lèi)用于派生委托類(lèi)型。
64 、A hash code for the delegate.───委托的哈希代碼。
65 、If you're the speediest member of a low key team, delegate appropriate tasks, such as research, to the slower staffer.───如果你是一個(gè)慢節奏團隊中最快的一個(gè),你就要把如研究工作等的相應工作委派給較為緩慢的人員。
66 、The director delegate all the routine work to his executive staff.───主任把日常工作全部交給手下的行政人員去做。
67 、If our delegate is unable to attend, we shall have to call on his deputy's services.───如果我們的代表不能出席,我們就請他的副手代勞。
68 、A delegate instance encapsulates a static or an instance method.───委托是函數的封裝,它代表一“類(lèi)”函數。
69 、In the Type name or select from list box, enter the name of the delegate to whom you want to grant permissions.───在“鍵入名稱(chēng)或從列表中選擇”框中,輸入您要向其授予權限的**的名稱(chēng)。
70 、Well, I delegate a lot of that, yeah.─── 是呀 不過(guò)也我經(jīng)常做他的代表
71 、They will surely try to ring in an unqualified delegate.───他們肯定想塞進(jìn)一名不合格的代表進(jìn)來(lái)。
72 、A Web Forms application developer can wire the event declaratively as shown without directly working with the delegate.───Web窗體應用程序開(kāi)發(fā)人員可以按照所示以聲明方式處理事件,而不必直接使用委托。
73 、Delegate and event are two vital elements of C#.───介紹C#言的兩個(gè)核心元素委托和事件,探討其語(yǔ)義和內部實(shí)現原理。
74 、Omit the parenthesis only if the anonymous method could have been used on any delegate.───僅當匿名方法可能被用于任何委托時(shí)省略括號。
75 、The trustee has a duty to act in person and not to delegate to others.───受托人有親自履行的義務(wù),并不得轉托他人履行。
76 、Later, he served again as a delegate to the United Nations.───后來(lái),他再次出任駐聯(lián)合國代表。
77 、The world of Taiwan China associated bank sets delegate office in Shanghai.───臺灣的世華聯(lián)合銀行在上海設代表處。
78 、Once a delegate object is created, the delegate object is typically passed to other code that will call the delegate.───創(chuàng )建委托對象后,通常將委托對象傳遞給將調用該委托的其他代碼。
79 、I could, but I'm no leader at all if I can't delegate authority.─── 是的 但好領(lǐng)導要承擔責任
80 、Create an instance of the delegate, using a reference to the event handler method.───使用對該事件處理程序方法的一個(gè)引用創(chuàng )建委托的一個(gè)實(shí)例。
81 、Tax payers have the right to entrust and delegate agents to bring prosecution.───108納稅有委托**人代為訴訟的權利。
82 、Name of the delegate type; follows standard variable naming conventions.───委托類(lèi)型的名稱(chēng);符合標準變量命名規則。
83 、They cannot be derived from and it is not possible to derive custom classes from Delegate.───中派生委托類(lèi)型,也不可能從中派生自定義類(lèi)。
84 、They drafted him to serve as their delegate.───他們選派他作他們的代表。
85 、You can't do all the jobs yourself---you can delegate a task to your subordinate.───你不能包攬所有的工作---你可以把任務(wù)委派給下屬。
86 、The object that is passed to the delegate when serviced from the thread pool.───在接受線(xiàn)程池服務(wù)時(shí)傳遞給委托的對象。
87 、First off, the Business Delegate pattern is different from the Business Interface pattern.───業(yè)務(wù)委派模式與業(yè)務(wù)接口模式完全不同。
88 、I'll need to consult with my delegation.─── 我需要跟我的代表商討一下
89 、The following example illustrates declaring, instantiating, and using a delegate.───下面的示例闡釋聲明、實(shí)例化和使用委托。
90 、A goliath delegate to the city dies of mysterious causes.───一名派向城市的。
delegate和event的區別?
這兩個(gè)單詞完全不搭界,很好分啊,八竿子打不著(zhù)的單詞還要區別啥? delegate ,可做名詞亦可作動(dòng)詞,做動(dòng)詞時(shí)指的是:授予部分權利給某位比你級別低的人,大概相當于中文里的授權委托,下放權力之類(lèi)的意思。
做名詞時(shí):當然就是指的持有這授予的權利的某人啦----既中文里的“代表(指人)”。event只能做名詞:指的是那些社會(huì )活動(dòng)(體育比賽,演出,聚會(huì )等等)或者是(重要,有趣,不尋常的)事件。Delegate是什么?
delegate是C#中的一種類(lèi)型,它實(shí)際上是一個(gè)能夠持有對某個(gè)方法的引用的類(lèi)。
與其它的類(lèi)不同,delegate類(lèi)能夠擁有一個(gè)簽名(signature),并且它只能持有與它的簽名相匹配的方法的引用。
上面的定義解釋了一個(gè)delegate的聲明定義了一個(gè)reference type, 而這個(gè)reference type是用來(lái)將一個(gè)方法利用一個(gè)指定的形式壓縮起來(lái)。一個(gè)delegate的實(shí)例壓縮一個(gè)靜態(tài)或者一個(gè)實(shí)例方法。Delegates和C++中的功能指針很相似。然而,不同的是,delegate是安全的,并且是Type-safe。
C#中的委托
1. 委托類(lèi)似與 C或C++中的函數指針,但委托是 面向對象的,并且是類(lèi)型安全的
2. 委托 就相對與 一類(lèi)方法 (即方法類(lèi),或者方法接口)
而這一類(lèi)方法都具有相同的 修飾符、形參以及 返回值類(lèi)型
委托,既是方法:
聲明委托的方式如下:在修飾符后加上 delegate ['d?l?ɡ?t]關(guān)鍵字
從格式上看,它與方法的聲明極為相似,就是多了個(gè) delegate關(guān)鍵字而已
表示聲明了一類(lèi),修飾符為public、一個(gè)string類(lèi)型形參的、沒(méi)有返回值的方法
但委托不是普通的方法,因為它也是類(lèi),
所以委托只能聲明,而不能定義,如不能這樣寫(xiě):
實(shí)例化委托,調用委托:
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。