summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Source/CommandLine/OutputWriter.cs
blob: f6aeeca30b49eb569e8d4777441e36d31fe7dbb8 (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
// 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);
    }
}