CxTypeSimple
Description
- Derived from
-
CxType abstract
A reference to a simple built-in type that is represented by a single keyword:
bool char double float int long object sbyte short string void
The CxTypeSimple class has fly-weight instances, so the ==
/ !=
operators may be used to compare for the same type, instead of calling ICxTypeQuery.IsSameAs1. Also, for resolving a fly-weight instance, the CxType.ResolvedContext method must be used, instead of ICxReference.Resolved
Public / Constants
Bool
The boolean type: bool
This is a 32-bit integer type, where 0
maps to false
and all other values map to true
.
Null
The pseudo-type for null
reference values.
For this type, Keyword returns ?
and TypeName returns CxName.Invalid. The type cannot be used in source code. It is only used internally, for example by the null
literal expressions to report its type.
Obj
The root reference type: object
All non-struct types (see CxDeclarationType) are assignable to this type.