I have this as one of my members of the class \'KeyEvent\':
private delegate void eventmethod();
And the constructor:
publi
the thing that you want is called "first class function" http://en.wikipedia.org/wiki/First-class_function
C#, since version 3, supports anonymous functions and lambda expressions.
So you can use Func
which represents a function taking an argument of type A and returning a value of type R
from wiki
static Func MakeDerivative(Func f, double deltaX)
{
return (x) => (f(x + deltaX) - f(x - deltaX)) / (2 * deltaX);
}