I have this:
if (input.Text.ToUpper() == \"STOP\")
But there are so many possible values that I wouldn\'t be able to specify them all sepa
var tasks = new List { "STOP", "END", "NO", "YES" }; tasks.Contains(input.Text.ToUpper());
looks better
var tasks = new List { "stop", "end", "no", "yes" }; tasks.Exists(x => string.Equals(x, input.Text, StringComparison.OrdinalIgnoreCase));