コード例 #1
0
        public string CreateMessageInvalidity(IValidationHelper validationHelper, object tag)
        {
            if (IsValid || validationHelper == null)
            {
                return(DefaultMessageInvalidity);
            }

            return(_errorEnumValue == null
                ? validationHelper.CreateMessageInvalidity(_errorValue, null)
                : validationHelper.CreateMessageInvalidity(_errorEnumValue, tag));
        }