private static Comparison GetComparison(SessionSettingMatch settingMatch) { switch (settingMatch) { case SessionSettingMatch.GreaterThanValue: return(Comparison.GreaterThan); case SessionSettingMatch.GreaterThanOrEqualToValue: return(Comparison.GreaterThanOrEqual); case SessionSettingMatch.LessThanValue: return(Comparison.LessThan); case SessionSettingMatch.LessThanOrEqualToValue: return(Comparison.LessThanOrEqual); default: throw new ArgumentException("Setting supplied does not match a comparison type", nameof(settingMatch)); } }
private static Comparison GetComparison(SessionSettingMatch settingMatch) { switch (settingMatch) { case SessionSettingMatch.GreaterThanValue: return Comparison.GreaterThan; case SessionSettingMatch.GreaterThanOrEqualToValue: return Comparison.GreaterThanOrEqual; case SessionSettingMatch.LessThanValue: return Comparison.LessThan; case SessionSettingMatch.LessThanOrEqualToValue: return Comparison.LessThanOrEqual; default: throw new ArgumentException("Setting supplied does not match a comparison type", "settingMatch"); } }