_Delegats2() { Mydelegate2 mydelegate2 = new Mydelegate2(Myclass2.Method2); Console.WriteLine(mydelegate2.Invoke("Mico")); Console.WriteLine(mydelegate2("Judi")); }
public static Mydelegat1 Method(Mydelegate2 mydelegate2, Mydelegate3 mydelegate3) { return(delegate { return mydelegate2.Invoke() + mydelegate3.Invoke(); }); }