开发者

C# lambda expression reverse direction <=

开发者 https://www.devze.com 2022-12-12 23:36 出处:网络
I have seen some code which uses the <= operator. Can you explain what is the use of having lambd开发者_开发技巧a in reverse direction?That\'s just less than or equal.I don\'t think C# lambdas work

I have seen some code which uses the <= operator. Can you explain what is the use of having lambd开发者_开发技巧a in reverse direction?


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.


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

(Except when it's actually a reverse lambda)


It is only used as 'less than or equal to' operation, as in:

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

精彩评论

暂无评论...
验证码 换一张
取 消