public delegate tr func<t1, t2, tr>(t1 p1, t2 p2);//泛型委托 //TR 返回的委托类型 class MyClass { static public string printstring(int p1, int p2) { return p1 + p2 + ""; } } class Program { static void Main(string[] args) { var my = new Func<int,int,string>(MyClass.printstring);//创建委托 Console.WriteLine(my(1,2));//返回委托 } }