Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the difference between a function pointer, function object and a delegate and a lambda?
Posted

A Delegate is a variable which holds a reference to a method or Lambda
A Lambda is a method that has no permanent (accessible) name.

A function pointer is called a Delegate in C# (and works the same as a function pointer in C or C++).

A function object is a reference to a method that we can use to set the value of a Delegate.
 
Share this answer
 
Comments
RajaSekhar Korimilli 26-Dec-13 4:58am    
Is Lambda a function object or a function pointer?
OriginalGriff 26-Dec-13 5:17am    
Hint:
A Delegate is a variable which holds a reference to a method or Lambda
Which makes a Lambda a function object.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900