public delegate int m(int x, int y);
static void Main(string args)
m res= new m(sum);
res += new m(mult);
public static int sum(int x, int y)
int z = x + y;
public static int mult(int x, int y)
int z = x * y;
this code give me one result for one fuction (mult), why? i want to obtain the both functions result (mult)and(sum) , plz help me.
What is going to happen is your delegate will be invoked two times the first you will not see the result. you can see the execution by pressing F11.