C# lambda expression reverse direction <=

2019-03-08 17:16发布

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

3条回答
贼婆χ
2楼-- · 2019-03-08 17:39

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.

查看更多
甜甜的少女心
3楼-- · 2019-03-08 17:52

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

(Except when it's actually a reverse lambda)

查看更多
Summer. ? 凉城
4楼-- · 2019-03-08 17:54

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

if(i <= 5)
{
 // ..
}
查看更多
登录 后发表回答