Table corresponding to Delphi and C # data types,
| Delphi DataType |
C # datatype |
| Ansistring |
String |
| Boolean |
Bool |
| Byte |
Byte |
| Char |
Char |
| Comp |
Double |
| Currency |
Decimal |
| Double |
Double |
| Extended |
Double |
| Int64 |
Long |
| Int32 |
Int |
| Int16 |
Short |
| Integer |
Int |
| Longint |
Int |
| Longword |
Uint |
| Olevariant |
Object |
| Pchar |
String |
| Real |
Double |
| Real48 |
Double |
| Shortint |
Sbyte |
| Single |
Float |
| Smallint |
Short |
| String |
String |
| Variant |
Object |
| Widechar |
Char |
| Wchar |
Char |
| Uchar |
Char |
| Widestring |
String |
| Word |
Ushort |
| Textfile |
System. IO. FileInfo |
| Tdate |
System. DateTime |
| Tdatetime |
System. DateTime |
| Tfiletime |
System. DateTime |
| Hresult |
Long |
| Pointer |
Object |
| Ansichar |
Char |
| File |
System. IO. File |
| Plongint |
Int |
| Pinteger |
Int |
| Pcardinal |
Uint |
| Pword |
Double |
| Pdword |
Double |
| Psmallint |
Short |
| Pbyte |
Byte |
| Pshortint |
Short |
| Pint64 |
Long |
| Plongword |
Uint |
| Psingle |
Float |
| Pdouble |
Double |
| Pdate |
System. DateTime |
| Pdispatch |
Object |
| Ppdispatch |
Object |
| Perror |
Object |
| Pwordbool |
Bool |
| Punknown |
Object |
| Ppunknown |
Object |
| Ppwidechar |
String |
| Ppchar |
String |
| Ppansichar |
String |
| Pansichar |
String |
| Pextended |
Double |
| Pcomp |
Double |
| Pcurrency |
Double |
| Pvariant |
Object |
| Polevariant |
Object |
| Ppointer |
Object |
| Pboolean |
Bool |
| Pdatetime |
System. DateTime |
| Thandle |
Long |
| Tresult |
Long |
| Cardinal |
Uint |
| Tbytearray |
Byte [] |
| Twordarray |
Int [] |
| Dword |
Int |
| Pstring |
String |
| Pwidestring |
String |
| Tsystemtime |
System. DateTime |
| Bytebool |
Bool |
| Longbool |
Bool |
| Wordbool |
Bool |
| Hmodule |
Long |
| Tlargeinteger |
Int |
| Plargeinteger |
Int |
| Pwidechar |
String |
| Toleenum |
Long |
| Pbytearray |
Byte [] |
| Pwordarray |
Int [] |
| Pansistring |
String |
| Ptextbuf |
String |
| Optional string |
String |
| Utf8string |
String |
| Text |
System. IO. Stream |
| Textfile |
System. IO. Stream |
| Textinput |
System. IO. TextReader |
| Textoutput |
System. IO. TextWriter |
| Ttypeinfo |
System. Type |
| Tbytes |
Sbyte [] |