Lambda Function Using Unknown Parameter

Simons Hood

Total Post:70


Posted by  Simons Hood
 1805  View(s)
Rate this:

I see PRISM declaring the following constructor, and I don't understand what's that "o" being used with the lambda function that serves as the second parameter when the base constructor is called:

public DelegateCommand(Action<T> executeMethod)

    : this(executeMethod, (o)=>true)



I'd appreciate an explanation.

  1. Re: Lambda Function Using Unknown Parameter

    Hi samuel,

    It calls this constructor:

    DelegateCommand<T>(Action<T>, Func<T, Boolean>)

    Passing a lambda that always returns true as the second parameter.


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.