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
create extension:
public static class Extension { public static bool EqualsAny(this string item, params string[] array) { return array.Any(s => item.ToUpper() == s.ToUpper()); } }
using:
if (inputText.EqualsAny("STOP", "END", "NO", "YES"))