J
Jet Leung
Hi all
I am confused that how to run a function which has parameters by delegate?
please show the example code and tell me more about the delegate.
Thank you!
For example
...
delegate string D_mydelegate(string p1,string p2);
....
// function 1
public string A(string parameter1,string parameter2)
{
//my code..
}
....
D_mydelegate A_delegate=new D_mydelegate(A);
....
And then how to transfer parameters to the function A???
And how to make the function work??
I am confused that how to run a function which has parameters by delegate?
please show the example code and tell me more about the delegate.
Thank you!
For example
...
delegate string D_mydelegate(string p1,string p2);
....
// function 1
public string A(string parameter1,string parameter2)
{
//my code..
}
....
D_mydelegate A_delegate=new D_mydelegate(A);
....
And then how to transfer parameters to the function A???
And how to make the function work??