I\'m reading a comma-delimited list of strings from a config file. I need to check whether another string is in that list. For example:
\"apple,banana,cheese\"
Using linq:
listString.Split(',').Contains("apple")
W/o linq:
Array.IndexOf(listString.Split(','), "apple") >= 0