Interface IDotNetType
Model that defines a .net type.
Inherited Members
Namespace: CodeFactory.DotNet
Assembly: CodeFactory.DotNet.dll
Syntax
public interface IDotNetType : IDotNetModel, IModelStatus, IDotNetGeneric
Properties
| Improve this Doc View SourceArrayDimensions
Gets a list of the dimensions that are assigned to the array. This will contain more then one value if the array is a jagged array. This will be empty if the type is not an array.
Declaration
IReadOnlyList<int> ArrayDimensions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<int> |
IsArray
Flag that determines if the type is an array of the target type.
Declaration
bool IsArray { get; }
Property Value
Type | Description |
---|---|
bool |
IsClass
Flag that determines if the type is a class.
Declaration
bool IsClass { get; }
Property Value
Type | Description |
---|---|
bool |
IsDelegate
Flag that determines if the type is a delegate.
Declaration
bool IsDelegate { get; }
Property Value
Type | Description |
---|---|
bool |
IsEnum
Flag that determines if the type is a enumeration.
Declaration
bool IsEnum { get; }
Property Value
Type | Description |
---|---|
bool |
IsGenericPlaceHolder
Flag that determines if the type is a generic place holder definition.
Declaration
bool IsGenericPlaceHolder { get; }
Property Value
Type | Description |
---|---|
bool |
IsInterface
Flag that determines if the type is an interface.
Declaration
bool IsInterface { get; }
Property Value
Type | Description |
---|---|
bool |
IsStructure
Flag that determines if the type is a structure.
Declaration
bool IsStructure { get; }
Property Value
Type | Description |
---|---|
bool |
IsTuple
Flag that determine if the type is a Tuple
Declaration
bool IsTuple { get; }
Property Value
Type | Description |
---|---|
bool |
IsValueType
Flag that determines if the type is a value type.
Declaration
bool IsValueType { get; }
Property Value
Type | Description |
---|---|
bool |
IsWellKnownType
Flag that determines if the type is one of the well know data types of the language.
Declaration
bool IsWellKnownType { get; }
Property Value
Type | Description |
---|---|
bool |
Name
The name of the type.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Namespace
The namespace the type belongs to.
Declaration
string Namespace { get; }
Property Value
Type | Description |
---|---|
string |
SupportsDisposable
Flag that determines if the type supports the interface IDisposable.
Declaration
bool SupportsDisposable { get; }
Property Value
Type | Description |
---|---|
bool |
TupleTypes
List of the types that are implemented in the Tuple. This will an empty list if the type is not a tuple.
Declaration
IReadOnlyList<IDotNetTupleTypeParameter> TupleTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IDotNetTupleTypeParameter> |
ValueTypeDefaultValue
The default value for well known value data types. This will be null if the value is not a well known value type.
Declaration
string ValueTypeDefaultValue { get; }
Property Value
Type | Description |
---|---|
string |
WellKnownType
Enumeration of the target well known type this type represents.
Declaration
WellKnownLanguageType WellKnownType { get; }
Property Value
Type | Description |
---|---|
WellKnownLanguageType |
Methods
| Improve this Doc View SourceGetClassModel()
Loads the full IDotNetClass model from the type definition.
Declaration
IDotNetClass GetClassModel()
Returns
Type | Description |
---|---|
IDotNetClass | Return the fully loaded model or an empty model if the type is not a class. |
GetDelegateModel()
Loads the full IDotNetDelegate model from the type definition.
Declaration
IDotNetDelegate GetDelegateModel()
Returns
Type | Description |
---|---|
IDotNetDelegate | Return the fully loaded model or an empty model if the type is not a delegate. |
GetEnumModel()
Loads the full IDotNetEnum model from the type definition.
Declaration
IDotNetEnum GetEnumModel()
Returns
Type | Description |
---|---|
IDotNetEnum | Return the fully loaded model or an empty model if the type is not an enumeration. |
GetInterfaceModel()
Loads the full IDotNetInterface model from the type definition.
Declaration
IDotNetInterface GetInterfaceModel()
Returns
Type | Description |
---|---|
IDotNetInterface | Return the fully loaded model or an empty model if the type is not an interface. |
GetStructureModel()
Loads the full IDotNetStructure model from the type definition.
Declaration
IDotNetStructure GetStructureModel()
Returns
Type | Description |
---|---|
IDotNetStructure | Return the fully loaded model or an empty model if the type is not a structure. |