Interface ICsType
Model that defines a type used in a C# model definition.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp
Assembly: CodeFactory.DotNet.dll
Syntax
public interface ICsType : ICsModel, ICsGeneric, IDotNetType, IDotNetModel, IModelStatus, IDotNetGeneric
Properties
| Improve this Doc View SourceTupleTypes
List of the types that are implemented in the Tuple. This will an empty list if the type is not a tuple.
Declaration
IReadOnlyList<CsTupleTypeParameter> TupleTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<CsTupleTypeParameter> |
WellKnownType
Enumeration of the target well known type this type represents.
Declaration
CsKnownLanguageType WellKnownType { get; }
Property Value
Type | Description |
---|---|
CsKnownLanguageType |
Methods
| Improve this Doc View SourceGetClassModel()
Loads the full ICsClass model from the type definition.
Declaration
CsClass GetClassModel()
Returns
Type | Description |
---|---|
CsClass | Return the fully loaded model or an empty model if the type is not a class. |
GetDelegateModel()
Loads the full ICsDelegate model from the type definition.
Declaration
CsDelegate GetDelegateModel()
Returns
Type | Description |
---|---|
CsDelegate | Return the fully loaded model or an empty model if the type is not a delegate. |
GetEnumModel()
Loads the full ICsEnum model from the type definition.
Declaration
CsEnum GetEnumModel()
Returns
Type | Description |
---|---|
CsEnum | Return the fully loaded model or an empty model if the type is not an enumeration. |
GetInterfaceModel()
Loads the full ICsInterface model from the type definition.
Declaration
CsInterface GetInterfaceModel()
Returns
Type | Description |
---|---|
CsInterface | Return the fully loaded model or an empty model if the type is not an interface. |
GetStructureModel()
Loads the full ICsStructure model from the type definition.
Declaration
CsStructure GetStructureModel()
Returns
Type | Description |
---|---|
CsStructure | Return the fully loaded model or an empty model if the type is not a structure. |