R
ray.ackley
I know you can do this in C++ as I remember doing it in my college days
(just a few years ago), but I'm having trouble finding reference on how
to do it with a managed language.
What I have is a wrapper function that performs a somewhat complex
enumeration of different objects that can be used to accomplish many
different tasks on each object.
I have each task seperated into it's own function because embedding all
the functions into an endless if/then/else inside the wrapper function
would be rather hard to read, and poor coding to boot.
What I'd like to do is somehow pass a reference to a single one of
these functions to the wrapper function when it is invoked, so that
when it has waded through all the enumeration logic it can then invoke
the "worker" function with proper arguments.
It this possible, and if so, how can I implement it?
Thanks,
Ray
(just a few years ago), but I'm having trouble finding reference on how
to do it with a managed language.
What I have is a wrapper function that performs a somewhat complex
enumeration of different objects that can be used to accomplish many
different tasks on each object.
I have each task seperated into it's own function because embedding all
the functions into an endless if/then/else inside the wrapper function
would be rather hard to read, and poor coding to boot.
What I'd like to do is somehow pass a reference to a single one of
these functions to the wrapper function when it is invoked, so that
when it has waded through all the enumeration logic it can then invoke
the "worker" function with proper arguments.
It this possible, and if so, how can I implement it?
Thanks,
Ray