i have this code:
List apps = getApps(); List ids; List dropdown = apps.ConvertAll(c => new
If you just need a true/false result
bool isInList = intList.IndexOf(intVariable) != -1;
if the intVariable does not exist in the List it will return -1