[SIZE=2][COLOR=#000000]static List<string> removeDuplicates(List<string> inputList)
{
Dictionary<string, int> uniqueStore = new Dictionary<string, int>();
List<string> finalList = new List<string>();[/COLOR][/SIZE]
[SIZE=2][COLOR=#000000] foreach (string currValue in inputList)
{
if (!uniqueStore.ContainsKey(currValue))
{
uniqueStore.Add(currValue, 0);
finalList.Add(currValue);
}
}
return finalList;[/COLOR][/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]This code basically takes in a list of strings and returns a new list with all duplicate strings removed. It might come in handy :P[/SIZE]
[SIZE=2]Cheers![/SIZE]
[SIZE=2]Kirupa :rambo: [/SIZE]