Does a List have a property or mechanism by which I can prevent duplicate entries from being added to it, or do I have to search the list for it each time?
IOW, it would be much nicer just to go:
List<String> AAppsToDisplay = new List<String>();
AAppsToDisplay.DuplicatesAllowed = false;
...
while (odr.Read())
{
AAppsToDisplay.Add(odr.GetString(0));
}
than to have to do this:
List<String> AAppsToDisplay = new List<String>();
. . .
String s = String.Empty;
while (odr.Read())
{
s = odr.GetString(0);
if (! AAppsToDisplay.Contains(s))
{
AAppsToDisplay.Add(s);
}
}