Interface IDotNetProperty
Model definition of a property in .net.
Inherited Members
Namespace: CodeFactory.DotNet
Assembly: CodeFactory.DotNet.dll
Syntax
public interface IDotNetProperty : IDotNetMember, IDotNetModel, IModelStatus, ISourceFiles, IDotNetAttributes, IDocumentation, IParent, ILookup
Properties
| Improve this Doc View SourceGetMethod
Provides access to the get method statement in the property. This will be null the property does not have a get statement.
Declaration
IDotNetMethod GetMethod { get; }
Property Value
Type | Description |
---|---|
IDotNetMethod |
GetSecurity
The security scope that is assigned to the get accessor. Make sure you check the HasGet to determine if the property supports get operations.
Declaration
DotNetSecurity GetSecurity { get; }
Property Value
Type | Description |
---|---|
DotNetSecurity |
HasGet
Flag that determines if this property supports get accessor.
Declaration
bool HasGet { get; }
Property Value
Type | Description |
---|---|
bool |
HasInit
Flag that determines if this property supports init accessor.
Declaration
bool HasInit { get; }
Property Value
Type | Description |
---|---|
bool |
HasSet
Flag that determines if this property supports set accessor.
Declaration
bool HasSet { get; }
Property Value
Type | Description |
---|---|
bool |
InitMethod
Provides access to the init method statement in the property. This will be null the property does not have a init statement.
Declaration
IDotNetMethod InitMethod { get; }
Property Value
Type | Description |
---|---|
IDotNetMethod |
IsAbstract
Flag that determines if the property is implemented as an abstract property.
Declaration
bool IsAbstract { get; }
Property Value
Type | Description |
---|---|
bool |
IsOverride
Flag that determines if the property has been overridden.
Declaration
bool IsOverride { get; }
Property Value
Type | Description |
---|---|
bool |
IsSealed
Flag that determines if the property has been sealed.
Declaration
bool IsSealed { get; }
Property Value
Type | Description |
---|---|
bool |
IsStatic
Flag that determines if the property has been implemented as static.
Declaration
bool IsStatic { get; }
Property Value
Type | Description |
---|---|
bool |
IsVirtual
Flag that determines if the property is implemented as virtual.
Declaration
bool IsVirtual { get; }
Property Value
Type | Description |
---|---|
bool |
PropertyType
The source data type that is managed by this property.
Declaration
IDotNetType PropertyType { get; }
Property Value
Type | Description |
---|---|
IDotNetType |
SetMethod
Provides access to the set method statement in the property. This will be null the property does not have a set statement.
Declaration
IDotNetMethod SetMethod { get; }
Property Value
Type | Description |
---|---|
IDotNetMethod |
SetSecurity
The security scope that is assigned to the set accessor. Make sure you check the HasSet to determine if the property supports set operations.
Declaration
DotNetSecurity SetSecurity { get; }
Property Value
Type | Description |
---|---|
DotNetSecurity |
Methods
| Improve this Doc View SourceLoadGetBodySyntaxAsync()
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.
Declaration
[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()
Returns
Type | Description |
---|---|
Task<string> |
LoadSetBodySyntaxAsync()
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.
Declaration
[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()
Returns
Type | Description |
---|---|
Task<string> |