/
CodeTypeMember.cs
35 lines (27 loc) · 1.24 KB
/
CodeTypeMember.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.CodeDom
{
public class CodeTypeMember : CodeObject
{
private string _name;
private CodeAttributeDeclarationCollection _customAttributes;
private CodeDirectiveCollection _startDirectives;
private CodeDirectiveCollection _endDirectives;
public string Name
{
get => _name ?? string.Empty;
set => _name = value;
}
public MemberAttributes Attributes { get; set; } = MemberAttributes.Private | MemberAttributes.Final;
public CodeAttributeDeclarationCollection CustomAttributes
{
get => _customAttributes ??= new CodeAttributeDeclarationCollection();
set => _customAttributes = value;
}
public CodeLinePragma LinePragma { get; set; }
public CodeCommentStatementCollection Comments { get; } = new CodeCommentStatementCollection();
public CodeDirectiveCollection StartDirectives => _startDirectives ??= new CodeDirectiveCollection();
public CodeDirectiveCollection EndDirectives => _endDirectives ??= new CodeDirectiveCollection();
}
}