public bool Validate(string propertyName, string datalist) { RuleSet ruleSet = null; switch (propertyName) { case "FieldName": ruleSet = GetFieldNameRuleSet(); break; case "FieldValue": break; } return Validate(propertyName, ruleSet); }