Following on from a previous thread in which types were discussed. I
was interested to read more about these differeent types. I started by
trying to learn about the delegate type, of which I had never seen
before.
I have so far managed to find out that a Delegate type is simmilar to a
function pointer, but the main difference is that it is type safe. I
haven't come accross the term function pointer before, but from what I
can gather the the delegate merely lets you call a static method, or
call an instance method. To facilitate this it takes either a static
method, or an object and instantiated method as it's arguments.
I can't see what it's actual use is?
Why not just call the method directly?
Thanks,
Gary-