Lambda expression with a void input

Viewed 16408

Ok, very silly question.

x => x * 2

is a lambda representing the same thing as a delegate for

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

But what is the lambda equivalent of

int Bar() { return 2; }

??

Thanks a lot!

4 Answers
Related