Check out example codes for "c# find duplicates in list". It will help you in understanding the concepts better.

Code Example 1

var query = lst.GroupBy(x => x)
              .Where(g => g.Count() > 1)
              .Select(y => y.Key)
              .ToList();

Learn ReactJs, React Native from akashmittal.com