forked from codecadwallader/codemaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeItemEnum.cs
More file actions
54 lines (41 loc) · 1.33 KB
/
CodeItemEnum.cs
File metadata and controls
54 lines (41 loc) · 1.33 KB
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
52
53
54
using EnvDTE;
using System;
namespace SteveCadwallader.CodeMaid.Model.CodeItems
{
/// <summary>
/// The representation of a code enumeration.
/// </summary>
public class CodeItemEnum : BaseCodeItemElementParent
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="CodeItemEnum" /> class.
/// </summary>
public CodeItemEnum()
{
_Access = LazyTryDefault(
() => CodeEnum?.Access ?? vsCMAccess.vsCMAccessPublic);
_Attributes = LazyTryDefault(
() => CodeEnum?.Attributes);
_DocComment = LazyTryDefault(
() => CodeEnum?.DocComment);
_Namespace = LazyTryDefault(
() => CodeEnum?.Namespace?.Name);
_TypeString = new Lazy<string>(
() => "enum");
}
#endregion Constructors
#region BaseCodeItem Overrides
/// <summary>
/// Gets the kind.
/// </summary>
public override KindCodeItem Kind => KindCodeItem.Enum;
#endregion BaseCodeItem Overrides
#region Properties
/// <summary>
/// Gets or sets the underlying VSX CodeEnum.
/// </summary>
public CodeEnum CodeEnum { get; set; }
#endregion Properties
}
}