Hope someone can help me. I am using c# and I am somewhat new to it.
I am loading a text file into my app and splitting the data on \",\" I am reading part of string into a
A simple/dirty example follows:
public List RemoveDuplicates(List listWithDups)
{
cleanList = new List();
foreach (string s in listWithDups)
{
if (!cleanList.Contains(s))
cleanList.Add(s);
}
return cleanList;
}
As a warning: String.Split on very large strings can cause consume huge amounts of memory and cause exceptions.