Hi,

i've seen some code with delegate in it

for example :

Code:
Figure figure = new Figure(10,20,30);
FigureDelegate fx = new FigureDelegate(figure.InvertX); 
FigureDelegate fy = new FigureDelegate(figure.InvertY); 
FigureDelegate fz = new FigureDelegate(figure.InvertZ);

what is the use if you can just call each one seperatly like normaly? why use delegate if is does the same as calling the fonction.

Maybe that is not a good example to show the use of delegate. Can someone show me a concrete example easy to understand the use of delegate?

Thanks