Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the name of this operator =>? [duplicate]

Possible Duplicate:
What is the => token called?

What is the name of this operator in C#?

like image 415
RHaguiuda Avatar asked Jun 18 '10 20:06

RHaguiuda


1 Answers

It's referred to as the lambda operator in the MSDN docs.

All lambda expressions use the lambda operator =>, which is read as "goes to". The left side of the lambda operator specifies the input parameters (if any) and the right side holds the expression or statement block. The lambda expression x => x * x is read "x goes to x times x." This expression can be assigned to a delegate type as follows:

like image 166
Brian R. Bondy Avatar answered Nov 15 '22 09:11

Brian R. Bondy