private string ValidateIgnoreCaseValue(string v) { string[] valid = { "false", "true" }; if (!Array.Exists(valid, s => v == s)) throw new OptionException("error: ignorecase value must be true or false", "ignorecase"); return v; }