I have defined a delegate like this:
delegate void processRecord(int a, int b);
now i want to use that to create an anonymous method to supply in a function call. The function is defined as such:
void someFunction(processRecord fcn);
and I want to call someFunction with an anonymous method, but this I cannot get right:
someFunction(new processRecord(a, b) {
// do stuff
});
How is the correct syntax for something like this?
processRecorddelegate anywhere else? Is not - useActionsomeFunction((a, b) => /* a and b usage*/);