博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Delphi to C# Equivalances--delphi和C#类似的地方
阅读量:4563 次
发布时间:2019-06-08

本文共 3190 字,大约阅读时间需要 10 分钟。

from:http://www.daniweb.com/software-development/pascal-and-delphi/code/216716/delphi-to-c-equivalances --- Basic Datatypes --- --- Form Management --- --- Data Access --- --- Component model ---
  1. ---BasicDatatypes---
  2. Delphi:Variant C#: object (with boxing)
  3. Delphi:Assert C#: System.Diagnostics.Debug.Assert
  4. ---FormManagement---
  5. Delphi:TForm.FormStyle= fsMDIForm C#: Form.IsMDIContainer = true
  6. Delphi:TForm.FormStyle= fsMDIChild C#: Form.MdiParent = ventanaPrincipal;
  7. Delphi:TControl.Align C#: Control.Dock
  8. Delphi:TForm.ShowModal C#: Form.ShowDialog()
  9. Delphi:Button1.Default:=True C#: Form.AcceptButton = button1
  10. Delphi:TForm.ModalResult,TButton.ModalResult C#: Form.DialogResult, Button.DialogResult
  11. Delphi:TButton.Click C#: Button.PerformClick()
  12. Delphi:TButton.OnClick C#: Button.Click
  13. Delphi:Screen.ActiveForm C#: static Form.ActiveForm
  14. Delphi:Application.ExeName C#: System.Windows.Forms.Application.ExecutablePath
  15. Delphi:Application.OnException C#: Application.ThreadException
  16. ---DataAccess---
  17. Delphi:TCustomConnection(and descendents) C#: IDbConnection (and implementors)
  18. Delphi:TDataSetProvider C#: IDbDataAdapter (SqlDataAdapter, OleDbDataAdapter, etc)
  19. Delphi:TClientDataSet C#: DataSet, DataTable
  20. Delphi:TField C#: DataColumn
  21. Delphi:TField.Required=True C#: DataColumn.AllowDBNull = false
  22. Delphi:Variants.Null C#: System.DBNull.Value
  23. ---Component model ---
  24. Delphi: procedure Loaded;override; C#: Implements ISupportInitialize
  25. Delphi: property X ...default100; C#: [DefaultValue(100)] int X { get; set; }
  26. Delphi:public property X: Y; C#: [Browseable(false)] public Y X { get; set; }
  27. Delphi:TService(Service app.) C#: System.ServiceProcess.ServiceBase
  1. ---BasicDatatypes---
  2. Delphi:Variant C#: object (with boxing)
  3. Delphi:Assert C#: System.Diagnostics.Debug.Assert
  4. ---FormManagement---
  5. Delphi:TForm.FormStyle= fsMDIForm C#: Form.IsMDIContainer = true
  6. Delphi:TForm.FormStyle= fsMDIChild C#: Form.MdiParent = ventanaPrincipal;
  7. Delphi:TControl.Align C#: Control.Dock
  8. Delphi:TForm.ShowModal C#: Form.ShowDialog()
  9. Delphi:Button1.Default:=True C#: Form.AcceptButton = button1
  10. Delphi:TForm.ModalResult,TButton.ModalResult C#: Form.DialogResult, Button.DialogResult
  11. Delphi:TButton.Click C#: Button.PerformClick()
  12. Delphi:TButton.OnClick C#: Button.Click
  13. Delphi:Screen.ActiveForm C#: static Form.ActiveForm
  14. Delphi:Application.ExeName C#: System.Windows.Forms.Application.ExecutablePath
  15. Delphi:Application.OnException C#: Application.ThreadException
  16. ---DataAccess---
  17. Delphi:TCustomConnection(and descendents) C#: IDbConnection (and implementors)
  18. Delphi:TDataSetProvider C#: IDbDataAdapter (SqlDataAdapter, OleDbDataAdapter, etc)
  19. Delphi:TClientDataSet C#: DataSet, DataTable
  20. Delphi:TField C#: DataColumn
  21. Delphi:TField.Required=True C#: DataColumn.AllowDBNull = false
  22. Delphi:Variants.Null C#: System.DBNull.Value
  23. ---Component model ---
  24. Delphi: procedure Loaded;override; C#: Implements ISupportInitialize
  25. Delphi: property X ...default100; C#: [DefaultValue(100)] int X { get; set; }
  26. Delphi:public property X: Y; C#: [Browseable(false)] public Y X { get; set; }
  27. Delphi:TService(Service app.) C#: System.ServiceProcess.ServiceBase

转载于:https://www.cnblogs.com/luoyaoquan/archive/2013/05/19/3086412.html

你可能感兴趣的文章
Java并发包基石-AQS详解
查看>>
Stopwatch运行时间 Parallel并行任务
查看>>
angular 事件绑定
查看>>
干货型up主
查看>>
线程池
查看>>
需求:打印九九乘法表
查看>>
5 OK6410裸机调试(不用Jlink)
查看>>
今天实现一个T-sql的小编程,分享给大家,看看就好~(列值赋值)
查看>>
“模板”学习笔记(5)-----编译器在处理函数模板的时候都干了啥
查看>>
教你用shell写CGI程序
查看>>
窗口 对话框 Pop Dialog 示例
查看>>
ubuntu(centos) server安装vmware tools
查看>>
数据结构之最大不重复串
查看>>
为什么要配置sdk-tools/platform-toools?
查看>>
自己动手开发更好用的markdown编辑器-07(扩展语法)
查看>>
maven dependency:tree中反斜杠的含义
查看>>
队列的循环队列
查看>>
程序中的日期格式
查看>>
大众点评CAT错误总结以及解决思路
查看>>
C# 你什么让程序员寂寞成酱紫 (男生版 娱乐中学习 抽象类 接口 继承 实现方法 )...
查看>>