C# lambda expression reverse direction <=

2019-03-08 17:44发布

问题:

I have seen some code which uses the <= operator. Can you explain what is the use of having lambda in reverse direction?

回答1:

That's just less than or equal. I don't think C# lambdas work like that. It's too early in the morning. You need coffee.



回答2:

That's not a lambda at all. That's less than or equal to

(Except when it's actually a reverse lambda)



回答3:

I think it is only used as 'smaller than or equal'. As in

if(i <= 5)
{
 // ..
}