I know in c#, to get a item from a list can use FirstOrDefault() or other functions. I am looking for a function can get most presented items from a List.
For example:
{ "a" , "a" , "a" , "b" }.MostPresents() => "a"
Is there a default function in c# (asp.net 4.0) for this?
1 Answer