c# 3.0 - Possible to get type of an aliased type in c#? -
type.gettype("system.string")
is there lookup aliases available somewhere?
type.gettype("string")
returns null
.
this not possible programmatically, since 'aliases' in fact keywords introduced in c#, , type.gettype
(like every other framework method) part of language-independent framework.
you create dictionary following values:
bool system.boolean byte system.byte sbyte system.sbyte char system.char decimal system.decimal double system.double float system.single int system.int32 uint system.uint32 long system.int64 ulong system.uint64 object system.object short system.int16 ushort system.uint16 string system.string
Comments
Post a Comment