Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unique #list
ADD COMMENT
Topic
Name
6+7 =