Is there a LINQ function for this is or would one have to code it themselves like this:
LINQ
static string GetLongestStringInList() { string long
Add a ThenBy() to guarantee a return order if there are multiple strings with the same length
var longest = list.OrderByDescending(s => s.Length) .ThenBy(s => s) .FirstOrDefault();