4 instantiations of ModelValidationResult
System.Web (4)
ModelBinding\DataAnnotationsModelValidator.cs (1)
87
yield return new
ModelValidationResult
ModelBinding\ModelValidator.cs (1)
53
yield return new
ModelValidationResult
{
ModelBinding\ValidatableObjectAdapter.cs (2)
42
yield return new
ModelValidationResult
{ Message = result.ErrorMessage };
46
yield return new
ModelValidationResult
{ Message = result.ErrorMessage, MemberName = memberName };
11 references to ModelValidationResult
System.Web (11)
ModelBinding\DataAnnotationsModelValidator.cs (1)
70
public override IEnumerable<
ModelValidationResult
> Validate(object container)
ModelBinding\ModelValidationNode.cs (2)
149
foreach (
ModelValidationResult
propertyResult in propertyValidator.Validate(model)) {
166
foreach (
ModelValidationResult
validationResult in validator.Validate(container)) {
ModelBinding\ModelValidator.cs (4)
39
public abstract IEnumerable<
ModelValidationResult
> Validate(object container);
46
public override IEnumerable<
ModelValidationResult
> Validate(object container) {
51
foreach (
ModelValidationResult
propertyResult in propertyValidator.Validate(Metadata.Model)) {
63
foreach (
ModelValidationResult
typeResult in typeValidator.Validate(container)) {
ModelBinding\MutableObjectModelBinder.cs (1)
200
foreach (
ModelValidationResult
validationResult in requiredValidator.Validate(bindingContext.Model)) {
ModelBinding\ValidatableObjectAdapter.cs (3)
13
public override IEnumerable<
ModelValidationResult
> Validate(object container) {
19
return Enumerable.Empty<
ModelValidationResult
>();
38
private IEnumerable<
ModelValidationResult
> ConvertResults(IEnumerable<ValidationResult> results) {