Lambda expression with a void input

前端 未结 0 944
故里飘歌
故里飘歌 2021-02-11 17:54

Ok, very silly question.

x => x * 2

is a lambda representing the same thing as a delegate for

int Foo(x) { return x * 2; }
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题