protected override string GetUnmatchMessage(TEnum value) { return(MessageFormatHelper.Format( ValidationPredicateMessages.NotMemberOfEnumMessage, value, value.GetType().FullName)); }
protected override string GetUnmatchMessage(string value) { return(MessageFormatHelper.Format( ValidationPredicateMessages.NotRegexMatchStringMessage, value, this.Pattern)); }
private static void Log(LogLevel level, string formatMessage, params object[] args) { if (level < CurrentLogLevel) { return; } var logMessage = MessageFormatHelper.FormatMessage(level, formatMessage, args); System.Diagnostics.Debug.AutoFlush = true; System.Diagnostics.Debug.WriteLine(logMessage); }
protected override string GetUnmatchMessage(T value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.EqualMessage, this.Bound)); }
protected override string GetMatchMessage(string value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNullOrWhiteSpaceStringMessage, value)); }
protected override string GetMatchMessage(float value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotInfinityMessage, value)); }
protected override string GetUnmatchMessage(string value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEqualStringMessage, value, this.Bound, this.ComparisonType)); }
protected override string GetMatchMessage(double value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNaNMessage, value)); }
protected override string GetUnmatchMessage(T value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.InstanceOfTypeMessage, this.type)); }
protected override string GetUnmatchMessage(string value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEmptyStringMessage, value)); }
protected override string GetMatchMessage(Nullable <T> value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotNullMessage, value)); }
protected override string GetMatchMessage(Guid value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.NotEmptyGuidMessage, value)); }
protected override string GetMatchMessage(T value) { return(MessageFormatHelper.Format(ValidationPredicateMessages.GreaterThanMessage, value, this.Bound)); }