泛型委托
- public delegate T1 Method<T1, T2>(T1 a);
- static void Main(string[] args)
- {
- Method<string, int> method = (string a) => { return a; };
- Console.WriteLine(method("有参数返回"));
- Console.ReadLine();
- }
- View Code
委托 - 系统
来源: http://www.bubuko.com/infodetail-3316684.html