Delphi和C#數據類型對應表

来源:http://www.cnblogs.com/czytcn/archive/2017/11/28/7908006.html
-Advertisement-
Play Games

Delphi DataTypeC# datatypeansistringstringbooleanboolbytebytecharcharcompdoublecurrencydecimaldoubledoubleextendeddoubleint64longint32intint16shortint... ...


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
shortstring string
utf8string string
text System.IO.Stream
textfile System.IO.Stream
textinput System.IO.TextReader
textoutput System.IO.TextWriter
ttypeinfo System.Type
tbytes sbyte[]


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • I.STM32 DWT時間戳功能實現 1.m3、m4實測可用。 2.精度:1/內核頻率(s)。 3.實現流程: a.先使能DWT外設,由內核調試寄存器DEM_CR的位24控制,寫1使能。 b.使能CYCCNT寄存器之前,先清0。 c.使能CYCCNT寄存器,由DWT_CTRL的位0控制,寫1使能。 ...
  • haproxy實現高級負載均衡實戰 環境:隨著公司業務的發展,公司負載均衡服務已經實現四層負載均衡,但業務的複雜程度提升,公司要求把mobile手機站點作為單獨的服務提供,不在和pc站點一起提供服務,此時需要做7層規則負載均衡,運維總監要求,能否用一種服務同既能實現七層負載均衡,又能實現四層負載均衡 ...
  • 1. 添加 nginx 的 yum 源(官網安裝說明) vi /etc/yum.repos.d/nginx.repo 在該文件中添加如下內容: [nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/$releasever/$ba ...
  • 正則表達式可以用來處理大量的文件和字元串,運維工作中過濾日記簡單高效,Linux最常應用正則表達式的命令有grep(egrep)、sed、awk。 正則表達式和文本通配符不同容易混淆。 字元匹配 . 匹配任意單個字元 [] 匹配指定範圍內的任意單個字元 [^] 匹配指定範圍外的任意單個字元 [:al ...
  • Linux的特點 1.免費的、開源的 2.支持多線程。多用戶的 3.安全性好 4.對記憶體和文件管理優越 5.linux最小隻需要4m->嵌入式開發 缺點: 操作相對困難 命令: shutdown -h now 立即進行關機 shutdown -r now 現在重新啟動電腦 reboot 現在重新啟 ...
  • 版本: Windows_server_2012-r2_x64 工具: VMware vSphere Client 鏡像地址: http://www.xpgod.com/soft/10718.html(地址為參考,可根據需求自行下載~) 首先鏈接虛機 鏈接成功後將本地資源進行上傳~ 滑鼠右擊datab ...
  • 從線程執行任務的方式上可以分為線程同步和線程非同步。而為了方便理解,後面描述中用“同步線程”指代與線程同步相關的線程,同樣,用“非同步線程”表示與線程非同步相關的線程。 線程非同步就是解決類似前面提到的執行耗時任務時界面控制項不能使用的問題。如創建一個次線程去專門執行耗時的任務,而其他如界面控制項響應這樣的任務 ...
  • var num = 1; var str = '1'; var test = 1; test == num //true 相同類型 相同值 test num //true 相同類型 相同值 test !== num //false test與num類型相同,其值也相同, 非運算肯定是false nu ...
一周排行
    -Advertisement-
    Play Games
  • 前言 本文介紹一款使用 C# 與 WPF 開發的音頻播放器,其界面簡潔大方,操作體驗流暢。該播放器支持多種音頻格式(如 MP4、WMA、OGG、FLAC 等),並具備標記、實時歌詞顯示等功能。 另外,還支持換膚及多語言(中英文)切換。核心音頻處理採用 FFmpeg 組件,獲得了廣泛認可,目前 Git ...
  • OAuth2.0授權驗證-gitee授權碼模式 本文主要介紹如何筆者自己是如何使用gitee提供的OAuth2.0協議完成授權驗證並登錄到自己的系統,完整模式如圖 1、創建應用 打開gitee個人中心->第三方應用->創建應用 創建應用後在我的應用界面,查看已創建應用的Client ID和Clien ...
  • 解決了這個問題:《winForm下,fastReport.net 從.net framework 升級到.net5遇到的錯誤“Operation is not supported on this platform.”》 本文內容轉載自:https://www.fcnsoft.com/Home/Sho ...
  • 國內文章 WPF 從裸 Win 32 的 WM_Pointer 消息獲取觸摸點繪製筆跡 https://www.cnblogs.com/lindexi/p/18390983 本文將告訴大家如何在 WPF 裡面,接收裸 Win 32 的 WM_Pointer 消息,從消息裡面獲取觸摸點信息,使用觸摸點 ...
  • 前言 給大家推薦一個專為新零售快消行業打造了一套高效的進銷存管理系統。 系統不僅具備強大的庫存管理功能,還集成了高性能的輕量級 POS 解決方案,確保頁面載入速度極快,提供良好的用戶體驗。 項目介紹 Dorisoy.POS 是一款基於 .NET 7 和 Angular 4 開發的新零售快消進銷存管理 ...
  • ABP CLI常用的代碼分享 一、確保環境配置正確 安裝.NET CLI: ABP CLI是基於.NET Core或.NET 5/6/7等更高版本構建的,因此首先需要在你的開發環境中安裝.NET CLI。這可以通過訪問Microsoft官網下載並安裝相應版本的.NET SDK來實現。 安裝ABP ...
  • 問題 問題是這樣的:第三方的webapi,需要先調用登陸介面獲取Cookie,訪問其它介面時攜帶Cookie信息。 但使用HttpClient類調用登陸介面,返回的Headers中沒有找到Cookie信息。 分析 首先,使用Postman測試該登陸介面,正常返回Cookie信息,說明是HttpCli ...
  • 國內文章 關於.NET在中國為什麼工資低的分析 https://www.cnblogs.com/thinkingmore/p/18406244 .NET在中國開發者的薪資偏低,主要因市場需求、技術棧選擇和企業文化等因素所致。歷史上,.NET曾因微軟的閉源策略發展受限,儘管後來推出了跨平臺的.NET ...
  • 在WPF開發應用中,動畫不僅可以引起用戶的註意與興趣,而且還使軟體更加便於使用。前面幾篇文章講解了畫筆(Brush),形狀(Shape),幾何圖形(Geometry),變換(Transform)等相關內容,今天繼續講解動畫相關內容和知識點,僅供學習分享使用,如有不足之處,還請指正。 ...
  • 什麼是委托? 委托可以說是把一個方法代入另一個方法執行,相當於指向函數的指針;事件就相當於保存委托的數組; 1.實例化委托的方式: 方式1:通過new創建實例: public delegate void ShowDelegate(); 或者 public delegate string ShowDe ...