diff options
Diffstat (limited to 'tools/Sandcastle/Source/CommandLine/OutputWriter.cs')
-rw-r--r-- | tools/Sandcastle/Source/CommandLine/OutputWriter.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/Sandcastle/Source/CommandLine/OutputWriter.cs b/tools/Sandcastle/Source/CommandLine/OutputWriter.cs new file mode 100644 index 0000000..c98efd5 --- /dev/null +++ b/tools/Sandcastle/Source/CommandLine/OutputWriter.cs @@ -0,0 +1,27 @@ +// Copyright © Microsoft Corporation. +// This source file is subject to the Microsoft Permissive License. +// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. +// All other rights reserved. + +using System; + +public static class OutputWriter { + + private static int warningCount; + + public static int WarningCount { + get { + return (warningCount); + } + } + + public static void WriteWarning(string text) { + warningCount++; + Console.WriteLine(text); + } + + public static void WriteWarning(string format, params Object[] values) { + warningCount++; + Console.WriteLine(format, values); + } +} |