Home > DeveloperSection > Forums > Lambda Function Using Unknown Parameter
Simons Hood
Simons Hood

Total Post:70

Posted on    February-09-2014 11:24 PM

 C# C# 

 1 Reply(s)
 961  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.

Pravesh Singh

Total Post:411

Posted on    February-09-2014 11:48 PM

Hi samuel,

It calls this constructor:

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

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

Don't want to miss updates? Please click the below button!

Follow MindStick