static ListremoveDuplicates(List inputList)
{
DictionaryuniqueStore = new Dictionary ();
ListfinalList = new List ();
foreach (string currValue in inputList)
{
if (!uniqueStore.ContainsKey(currValue))
{
uniqueStore.Add(currValue, 0);
finalList.Add(currValue);
}
}
return finalList;
}
No comments:
Post a Comment