quentinA
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER