summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Source/CommandLine/OutputWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Sandcastle/Source/CommandLine/OutputWriter.cs')
-rw-r--r--tools/Sandcastle/Source/CommandLine/OutputWriter.cs25
1 files changed, 25 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..f6aeeca
--- /dev/null
+++ b/tools/Sandcastle/Source/CommandLine/OutputWriter.cs
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation. All 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);
+ }
+}