/// <summary> /// Checks a switch name against the PossibleSwitches entries /// </summary> /// <param name="checkSwitch">Name of a passed switch</param> /// <returns>Indicates whether or not checkSwitch was found in PossibleSwitches</returns> private bool SwitchOk(string checkSwitch) { PossibleSwitches ps = new PossibleSwitches(); if (ps.ContainsKey(checkSwitch)) { return(true); } else { return(false); } }
/// <summary> /// Checks a switch name against the PossibleSwitches entries /// </summary> /// <param name="checkSwitch">Name of a passed switch</param> /// <returns>Indicates whether or not checkSwitch was found in PossibleSwitches</returns> private bool SwitchOk(string checkSwitch) { PossibleSwitches ps = new PossibleSwitches(); if (ps.ContainsKey(checkSwitch)) return true; else return false; }