Lambda Function Using Unknown Parameter

Simons Hood

Total Post:70

Points:494

Posted by  Simons Hood
C# 
C#
 1805  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. 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

Please check, If you want to make this post sponsored

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