public AcceptedValuesAttribute(string clientErrorMessage, bool enforceCasing, bool allowNull, params string[] acceptedValues) { Enforcer = new StringEnforcer(acceptedValues, enforceCasing, allowNull); RejectionMessage = clientErrorMessage; }
public AcceptedValuesAttribute(DateTime?notBefore, DateTime?notAfter, bool allowNull, bool allowFutureDates, bool allowPastDates) { Enforcer = new DateEnforcer(notBefore, notAfter, allowNull); }
public AcceptedValuesAttribute(bool enforceCasing, bool allowNull, params string[] acceptedValues) { Enforcer = new StringEnforcer(acceptedValues, enforceCasing, allowNull); }