protected override string GetDefaultMessageTemplate(string errorCode) { var baseMsg = _inner.GetDefaultMessageTemplate(errorCode); var sb = new StringBuilder(baseMsg); sb.Append(" This property is optional and can be null."); return(sb.ToString()); }
protected override string GetDefaultMessageTemplate(string errorCode) { IPropertyValidator casted = _underlyingNotEmptyValidator; return(casted.GetDefaultMessageTemplate(errorCode)); }
public string GetDefaultMessageTemplate(string errorCode) => _inner.GetDefaultMessageTemplate(errorCode);