C# Lambda expression syntax, is brackets necessary?
- by DevNovice
I'm new in C# and earlier I saw the lambda expression is like
(params) = { expression;}
but in LINQ, I saw examples like
IEnumerable customerFirstNames = customers.Select(cust = cust.FirstName);
No brackets.
Are they the same or is there any difference?
Thanks a lot.