Generic delegate
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(); }
Generic delegate
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(); }