Call functions in an event/function chain?
- by acidzombie24
I have 3 functions. They can be called in any order (later they may need specific order).
The return value of one function should be the first param of the next. How do i do this? what i am thinking is something like the below. Whats the best way to do this?
string void fn(string sz, data d, eventhdl nextFunc)
{
//do stuff
if(nextFunc == null)
return ret;
else
return nextFunc(ret, d, nextFunc.Next);
}