LAMBDA FUNCTION USING UNKNOWN PARAMETER

Simons Hood

Total Post:70

Points:494
Posted by  Simons Hood
C# 
C#
 1260  View(s)
Ratings:
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. Pravesh Singh

    Post:412

    Points:2888
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!