void IPropertyValidatorContainer.AddValidator <TProperty>(string propertyName, PropertyValidator <TProperty> validator) { List <PropertyValidatorBase> validatorList; if (!ValidationMap.TryGetValue(propertyName, out validatorList)) { validatorList = new List <PropertyValidatorBase>(); ValidationMap.Add(propertyName, validatorList); } validatorList.Add(validator); }
internal void AddValidation(string propertyName, ValidationBinder binder) { List <ValidationBinder> bindList; if (!ValidationMap.TryGetValue(propertyName, out bindList)) { bindList = new List <ValidationBinder>(); ValidationMap.Add(propertyName, bindList); } bindList.Add(binder); }