list string unique c# code example
Example: how to get unique list in c#
using(var dataModel = new DataModel())
{
var classes = dataModel.Attributes.Where(a => a.Field == "Class").Select(a => a.Key).Distinct().ToList();
}
using(var dataModel = new DataModel())
{
var classes = dataModel.Attributes.Where(a => a.Field == "Class").Select(a => a.Key).Distinct().ToList();
}