Link to home
Start Free TrialLog in
Avatar of quentinA
quentinAFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Lambda expressions and the Action<Object> delegate, further question

Hi I've looked through the documentation on Action<T> that I though was the answer to a similar question posted a few days ago, and I still don't understand how a delegate typed as Action<T> can represent a method which has no input parameters e.g. methods like:
debug.indent()

e.g. see http://blogs.msdn.com/mikehillberg/archive/2009/03/20/icommand-is-like-a-chocolate-cake.aspx

In several examples of using Action<T> in Delegate commands, methods are being sent to the execute method using lambda expressions that output methods which don't themselves required any input paramters.

I think I must be missing something here. Can anybody help explain this apparent anomoly.
 
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of quentinA

ASKER

Many thanks