Delphi to C# Equivalances--delphi和C#类似的地方

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值