摘要:
C#中的Action<>和Func<>其实他们两个都是委托【代理】的简写形式。一、【action<>】指定那些只有输入参数,没有返回值的委托Delegate的代码:[csharp]view plaincopypublicdelegatevoidmyDelegate(stringstr);publicstaticvoidHellowChinese(stringstrChinese){Console.WriteLine("Goodmorning,"+strChinese);Console.ReadLine();}myDelegated=new 阅读全文