Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to parse a function to a function...

Status
Not open for further replies.

AlgernonWannabe

Technical User
Nov 21, 2003
3
DK
Hi

I'm aware of one can parse a function to a function with a functionpointer in Delphi, but how do I do this in C# ???

Thanks
 
use events and/or delegates
supposing:
int xx(int y){return y + 1;}

using of delegate:
delegate int dx(int y);
dx = xx;
z = dx(something);

//using of event, look at delegate dx,
event ex;
ex = dx;
z = ex(someghig);


Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top