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