开发者

C# lambda expression reverse direction <=

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜