ASP.NET
Monday, February 20, 2012
Removing duplicates from a collection
List
list = new List
();
list.Add(1);
list.Add(2);
list.Add(3);
list.Add(3);
list.Add(4);
list.Add(4);
List
distinct = list.Distinct().ToList();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment