typeString

Returns the identifier of a type.

string
typeString
(
T
)
(
T t
)

Parameters

t
Type: T

Either a RtType or a pointer to a Rtti.

Return Value

Type: string

For the basic types, always the equivalent of the keyword .stringof property. For the other types, if t is a RtType then "struct", "enum", "Object", etc are returned, otherwise if t is a pointer to a Rtti then the type identifier is returned, e.g "E" for enum E {e}.

Meta