示例#1
0
        public static void IsTrue(bool condition, string formatString, params object[] args)
        {
            if (condition)
            {
                return;
            }

            var message = StringFormatter.Format(formatString, args);

            throw new InvalidOperationException(message);
        }
示例#2
0
        // bypass history de-duplication
        public static void LogFormatAlways(string format, params object[] args)
        {
            var result = StringFormatter.Format(format, args);

            LogAlways(result);
        }