Class CsTupleTypeParameter
Data model that represents a tuple type parameter.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp
Assembly: CodeFactory.DotNet.dll
Syntax
public abstract class CsTupleTypeParameter : CsModel, ICsTupleTypeParameter, ICsModel, IDotNetTupleTypeParameter, IDotNetModel, IModelStatus
Constructors
| Improve this Doc View SourceCsTupleTypeParameter(bool, bool, bool, SourceCodeType, bool, string, CsType, string, ModelStore<ICsModel>, IReadOnlyList<ModelLoadException>)
Constructor for the CsModel
Declaration
protected CsTupleTypeParameter(bool isLoaded, bool hasErrors, bool loadedFromSource, SourceCodeType language, bool hasDefaultName, string name, CsType tupleType, 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 | hasDefaultName | Does the type parameter use a distinct name. |
string | name | The distinct name assigned to the type. |
CsType | tupleType | The type definition of the tuple type. |
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 SourceHasDefaultName
Flag that determines if the named assigned to the tuple was system generated or defined in source.
Declaration
public bool HasDefaultName { get; }
Property Value
Type | Description |
---|---|
bool |
Name
The name assigned to the tuple parameter.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
TupleType
The model with the type definition assigned to the tuple.
Declaration
public CsType TupleType { get; }
Property Value
Type | Description |
---|---|
CsType |
Explicit Interface Implementations
| Improve this Doc View SourceIDotNetTupleTypeParameter.TupleType
The model with the type definition assigned to the tuple.
Declaration
IDotNetType IDotNetTupleTypeParameter.TupleType { get; }
Returns
Type | Description |
---|---|
IDotNetType |