In this post Other Post I used the programmers suggestion of List<KeyValuePair<string, string>> IdentityLines = new List<KeyValuePair<string, string>>(); to collect multiple string values within certain files of a directory. I now want to remove the duplicate values from that list. Any idea how I can do that in C#? Thanks
In this post Other Post I used the programmers suggestion of List<KeyValuePair<string, string>> IdentityLines
Share
http://www.kirupa.com/net/removingDuplicates.htm
If you want to return an
IEnumerableinstead, change your return type toIEnumerable<T>andyieldreturncurrValue instead of adding it to the final list.