-
Notifications
You must be signed in to change notification settings - Fork 383
/
Copy pathLoggerInfo.cs
51 lines (42 loc) · 1.46 KB
/
LoggerInfo.cs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Windows.Powershell.ScriptAnalyzer.Generic
{
/// <summary>
/// Represents an internal class to properly display the name and description of a logger.
/// </summary>
internal class LoggerInfo
{
private string name;
private string description;
/// <summary>
/// Name: The name of the logger.
/// </summary>
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public string Name
{
get { return name; }
private set { name = value; }
}
/// <summary>
/// Description: The description of the logger.
/// </summary>
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public string Description
{
get { return description; }
private set { description = value; }
}
/// <summary>
/// Constructor for a LoggerInfo.
/// </summary>
/// <param name="name">The name of the logger</param>
/// <param name="description">The description of the logger</param>
public LoggerInfo(string name, string description)
{
Name = name;
Description = description;
}
}
}