This will get the most popular instance of Datum
in your abc
List
var mostPopular = abc
.GroupBy(x => x.name)
.OrderByDescending(g => g.Count())
.First();
If you want JUST the name
value of the most popular append a Select
on the end
var mostPopularName = abc
.GroupBy(x => x.name)
.OrderByDescending(g => g.Count())
.First()
.Select(x=> x.name);
solved How to return the frequent/highest repeated word from a List in C#? [duplicate]