C# lambda expression reverse direction <=

后端 未结 3 1831
小蘑菇
小蘑菇 2021-01-30 15:34

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

相关标签:
3条回答
  • 2021-01-30 16:09

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

    (Except when it's actually a reverse lambda)

    0 讨论(0)
  • 2021-01-30 16:19

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

    if(i <= 5)
    {
     // ..
    }
    
    0 讨论(0)
  • 2021-01-30 16:23

    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.

    0 讨论(0)
提交回复
热议问题