C# Lambda expression syntax: are 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<string> customerFirstNames = customers.Select(cust => cust.FirstName);
No brackets.
Are they the same or is there any difference?
Thanks a lot.