shwq.net
当前位置:首页 >> puBliC voiD GrEEtPEoplE(string nAmE, GrEEtingDE... >>

puBliC voiD GrEEtPEoplE(string nAmE, GrEEtingDE...

void GreetingDelegate(string name);//新建的GreetingManager类public class GreetingManager{public void GreetPeople(string name, GreetingDelegate MakeGreeting) {...

public void GreetPeople(string name){ // 做某些额外的事情,比如初始化之类,此处略 EnglishGreeting(name);}public void EnglishGreeting(string name){ Console....

.Text; namespace Delegate { public delegate void GreetingDelegate(string name); public class GreetingManager { public event GreetingDelegate MakeGreet......

可以看到,实际上尽管我们在GreetingManager里将 MakeGreet 声明为public,但是,实际...public delegate void GreetingDelegate(string name);当编译器遇到这段代码的时候...

greeting n. 问候,招呼;祝贺 v. 致敬,欢迎(greet的现在分词) greet vt. 欢迎,迎接;致敬,致意;映入眼帘 greeting可以作为名词用。

您好,很高兴为您解答 greeting n.问候,招呼;祝贺 v.致敬,欢迎(greet的现在分词) greet vt.欢迎,迎接;致敬,致意;映入眼帘 greeting可以作为名词用.

网站首页 | 网站地图
All rights reserved Powered by www.shwq.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com