Click here to Skip to main content
15,877,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is mean of (c=>? c.version) in this query
var query = (from p in ctx.test select p).Max(c=> c.version);
Posted

1 solution

That is a lambda expression. The LINQ expression will return an Enumerable and Max is an extension method which will return the value having maximum value of version.

If the query is in a real code, it is useless since the select is not doing anything. For learning purpose, fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900