I have been working with a string[] array in C# that gets returned from a function call. I could possibly cast to a Generic collection, but I was w
string[]
Generic
List myStringList = new List(); foreach (string s in myStringArray) { if (!myStringList.Contains(s)) { myStringList.Add(s); } }
This is O(n^2), which won't matter for a short list which is going to be stuffed into a combo, but could be rapidly be a problem on a big collection.