Loading...
Searching...
No Matches
RequiredWhenAttribute.cs File Reference

Classes

class  OFT.Attributes.RequiredWhenAttribute
 Behaves like RequiredAttribute, but only while the specified source property's value matches one of the provided values; otherwise the property is always considered valid. Derives from RequiredAttribute so it is enforced even by validators that run required-only checks (e.g. Validator.TryValidateObject with validateAllProperties: false). More...
 

Namespaces

namespace  OFT
 
namespace  OFT.Attributes