Is there a LINQ function for this is or would one have to code it themselves like this:
LINQ
static string GetLongestStringInList() { string long
I thought there was a better way to get the longest string in a list of strings using the lambda expressions. One such way is as below.
string longestString = list.Max(arr => arr);
Hope this works good for the answer seekers.