private ValidationResult Validate(BindingExpression bindingExpression, object value) { bindingExpression.DbC_Assure(binding => binding == this.BindingExpression); IObjectValidation ObjectValidation = this.notifyDataErrorSourceItem as IObjectValidation; if (ObjectValidation != null) { ValidationMessage[] Errors = ObjectValidation.PreviewErrors(this.sourcePropertyName, value).ToArray(); return(this.ProcessValidationResults(Errors)); } else { return(ValidationResult.ValidResult); } }
public static void Validate(IObjectValidation obj) { obj.Validate(); }
public static void Validate(IObjectValidation domainObject) { domainObject.Validate(); }
public static void Validate(IObjectValidation obj) { obj.Validate(); }