Is there a LINQ function for this is or would one have to code it themselves like this:
LINQ
static string GetLongestStringInList() { string long
The method you want is typically called "MaxBy" and it is unfortunately not included in the standard set of sequence operators. Fortunately it is very easy to write yourself. See this answer for an implementation:
Linq group by with a sub query