How can I use function as parameter of another function and assign it to a delegate
public class myClass
{
public delegate void myDelegate(double x, string s);
//declaration of delegate
public void func(double x, string s)
{
dosomethings...
}
// what is the declaration of the argument 'Function declaration'
public void myFunction('Function declaration' function)
{
myDelegate deFunc;
deFunc = function;
}
}
static void Main(string[] args)
{
myFunction(func);
}
}