Validation of properties that require the values of other properties
问题 So I have checked out this answer ASP:NET MVC 4 dynamic validation of a property depending of the current value of another property and it does not cover the issue I am having. I am using server side validation. I have a requirement that... A value is only required if another property is specified Issue MVC binds each property and calls each validator on that property as it binds them. If I am dependent on multiple properties being set when I check validationContext.ObjectInstance.[MY