the => symbol implies that the word preceding the => is a placeholder variable. For each object in the original collection, a reference to that object will be placed into the placeholder variable, the code
to the right of the => symbol will be executed, and the result will be used to build the new collection or to compute a value.
winseealn@ho...
Participant
840 Points
1042 Posts
linq what is => symbol
Jul 24, 2012 06:00 AM|LINK
hi all,
in LINQ to SQL Database, while doing update like below, here my doubt is what is this symbol =>?
Rohit Rao
Participant
1869 Points
357 Posts
Re: linq what is => symbol
Jul 24, 2012 06:08 AM|LINK
the => symbol implies that the word preceding the => is a placeholder variable. For each object in the original collection, a reference to that object will be placed into the placeholder variable, the code to the right of the => symbol will be executed, and the result will be used to build the new collection or to compute a value.
refer following link for more information :
http://www.informit.com/articles/article.aspx?p=1397803
karthicks
All-Star
31382 Points
5424 Posts
Re: linq what is => symbol
Jul 24, 2012 06:08 AM|LINK
hi, It's Called Lambda Expression
Refer : http://msdn.microsoft.com/en-us/library/bb397687.aspx
http://www.codeproject.com/Articles/24255/Exploring-Lambda-Expression-in-C
http://www.dotnetperls.com/lambda
http://blogs.msdn.com/b/ericwhite/archive/2006/10/03/lambda-expressions.aspx
Karthick S
Saravanan M
Participant
1944 Points
321 Posts
Re: linq what is => symbol
Jul 24, 2012 06:14 AM|LINK
It is lambda operator.
All lambda expressions use the lambda operator =>, which is read as "goes to".
Lambda Expressions