-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIDotNetProperty.cs
More file actions
98 lines (81 loc) · 3.67 KB
/
IDotNetProperty.cs
File metadata and controls
98 lines (81 loc) · 3.67 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2022 CodeFactory, LLC
//*****************************************************************************
using System;
using System.Threading.Tasks;
namespace CodeFactory.DotNet
{
/// <summary>
/// Model definition of a property in .net.
/// </summary>
public interface IDotNetProperty:IDotNetMember
{
/// <summary>
/// The source data type that is managed by this property.
/// </summary>
IDotNetType PropertyType { get; }
/// <summary>
/// Flag that determines if this property supports get accessor.
/// </summary>
bool HasGet { get; }
/// <summary>
/// The security scope that is assigned to the get accessor. Make sure you check the HasGet to determine if the property supports get operations.
/// </summary>
DotNetSecurity GetSecurity { get; }
/// <summary>
/// Flag that determines if this property supports set accessor.
/// </summary>
bool HasSet { get; }
/// <summary>
/// The security scope that is assigned to the set accessor. Make sure you check the HasSet to determine if the property supports set operations.
/// </summary>
DotNetSecurity SetSecurity { get; }
/// <summary>
/// Flag that determines if this property supports init accessor.
/// </summary>
bool HasInit { get; }
/// <summary>
/// Flag that determines if the property is implemented as an abstract property.
/// </summary>
bool IsAbstract { get; }
/// <summary>
/// Flag that determines if the property is implemented as virtual.
/// </summary>
bool IsVirtual { get; }
/// <summary>
/// Flag that determines if the property has been sealed.
/// </summary>
bool IsSealed { get; }
/// <summary>
/// Flag that determines if the property has been overridden.
/// </summary>
bool IsOverride { get; }
/// <summary>
/// Flag that determines if the property has been implemented as static.
/// </summary>
bool IsStatic { get; }
/// <summary>
/// Provides access to the get method statement in the property. This will be null the property does not have a get statement.
/// </summary>
IDotNetMethod GetMethod { get; }
/// <summary>
/// Provides access to the set method statement in the property. This will be null the property does not have a set statement.
/// </summary>
IDotNetMethod SetMethod { get; }
/// <summary>
/// Provides access to the init method statement in the property. This will be null the property does not have a init statement.
/// </summary>
IDotNetMethod InitMethod { get; }
/// <summary>
/// The source code syntax that is stored in the body of the property get. This will be null if was not loaded from source code.
/// </summary>
[Obsolete("This will be removed in later editions of the SDK. Use the GetMethod property to access the get method details.",false)]
Task<string> LoadGetBodySyntaxAsync();
/// <summary>
/// The source code syntax that is stored in the body of the property get. This will be null if was not loaded from source code.
/// </summary>
[Obsolete("This will be removed in later editions of the SDK. Use the SetMethod property to access the set method details.",false)]
Task<string> LoadSetBodySyntaxAsync();
}
}