summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Source/CommandLine/OutputWriter.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-10-31 16:27:49 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-10-31 16:27:49 -0700
commit55d6e4be43225184f9a656e6d9cc8fc1e8e7387b (patch)
treec382ef957455af8a39f80789dff9b112e97c2fe6 /tools/Sandcastle/Source/CommandLine/OutputWriter.cs
parent07a8ecbc4fc50d11179f7e0b3fadb9f2be430ae5 (diff)
parentebf5efb48cddbfaf08aec24117b7c5f9626f1c02 (diff)
downloadDotNetOpenAuth-55d6e4be43225184f9a656e6d9cc8fc1e8e7387b.zip
DotNetOpenAuth-55d6e4be43225184f9a656e6d9cc8fc1e8e7387b.tar.gz
DotNetOpenAuth-55d6e4be43225184f9a656e6d9cc8fc1e8e7387b.tar.bz2
Merge branch 'contracts'
Diffstat (limited to 'tools/Sandcastle/Source/CommandLine/OutputWriter.cs')
-rw-r--r--tools/Sandcastle/Source/CommandLine/OutputWriter.cs27
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);
+ }
+}