summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Source/CommandLine/OutputWriter.cs
blob: c98efd59f04cf252e0c1ab99bd72167be85e86b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
    }
}