Class CsAttributeParameter
Data model that represents a attribute parameter.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp
Assembly: CodeFactory.DotNet.dll
Syntax
public abstract class CsAttributeParameter : CsModel, ICsAttributeParameter, ICsModel, IDotNetAttributeParameter, IDotNetModel, IModelStatus
Constructors
| Improve this Doc View SourceCsAttributeParameter(bool, bool, bool, SourceCodeType, bool, string, CsAttributeParameterValue, string, ModelStore<ICsModel>, IReadOnlyList<ModelLoadException>)
Constructor for the CsAttributeParameter
Declaration
protected CsAttributeParameter(bool isLoaded, bool hasErrors, bool loadedFromSource, SourceCodeType language, bool hasNamedParameter, string name, CsAttributeParameterValue value, string sourceDocument = null, ModelStore<ICsModel> modelStore = null, IReadOnlyList<ModelLoadException> modelErrors = null)
Parameters
Type | Name | Description |
---|---|---|
bool | isLoaded | Flag that determines if the model was loaded. |
bool | hasErrors | Flag that determine if errors were found creating the model. |
bool | loadedFromSource | Flag that determines if the model was loaded from source code or from an existing library. |
SourceCodeType | language | The target language the model was generated from. |
bool | hasNamedParameter | Flag that determines if the attribute parameter is a named parameter. |
string | name | The name of the parameter, should be null if not named. |
CsAttributeParameterValue | value | The value assigned to the parameter. |
string | sourceDocument | The source document that was used to build this model. This is optional parameter and can be null. |
ModelStore<ICsModel> | modelStore | Optional the lookup storage for models created during the compile or lookup of the model. |
IReadOnlyList<ModelLoadException> | modelErrors | Optional the error that occurred while creating the model. |
Properties
| Improve this Doc View SourceHasNamedParameter
Flag that determines if the attribute parameter is a named value, or just part of the attributes constructor.
Declaration
public bool HasNamedParameter { get; }
Property Value
Type | Description |
---|---|
bool |
Name
The name of the parameter, if this is not a named parameter then it will be set to null
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Value
The value that was assigned to the parameter.
Declaration
public CsAttributeParameterValue Value { get; }
Property Value
Type | Description |
---|---|
CsAttributeParameterValue |
Explicit Interface Implementations
| Improve this Doc View SourceIDotNetAttributeParameter.Value
The value that was assigned to the parameter.
Declaration
IDotNetAttributeParameterValue IDotNetAttributeParameter.Value { get; }
Returns
Type | Description |
---|---|
IDotNetAttributeParameterValue |