User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 425,866 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,459 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Mar 18th, 2006
Views: 11,339
--- Basic Datatypes ---
--- Form Management ---
--- Data Access ---
--- Component model ---
delphi Syntax | 4 stars
  1. --- Basic Datatypes ---
  2. Delphi: Variant C#: object (with boxing)
  3. Delphi: Assert C#: System.Diagnostics.Debug.Assert
  4.  
  5.  
  6. --- Form Management ---
  7. Delphi: TForm.FormStyle = fsMDIForm C#: Form.IsMDIContainer = true
  8. Delphi: TForm.FormStyle = fsMDIChild C#: Form.MdiParent = ventanaPrincipal;
  9. Delphi: TControl.Align C#: Control.Dock
  10. Delphi: TForm.ShowModal C#: Form.ShowDialog()
  11. Delphi: Button1.Default := True C#: Form.AcceptButton = button1
  12. Delphi: TForm.ModalResult, TButton.ModalResult C#: Form.DialogResult, Button.DialogResult
  13. Delphi: TButton.Click C#: Button.PerformClick()
  14. Delphi: TButton.OnClick C#: Button.Click
  15. Delphi: Screen.ActiveForm C#: static Form.ActiveForm
  16. Delphi: Application.ExeName C#: System.Windows.Forms.Application.ExecutablePath
  17. Delphi: Application.OnException C#: Application.ThreadException
  18.  
  19.  
  20. --- Data Access ---
  21. Delphi: TCustomConnection (and descendents) C#: IDbConnection (and implementors)
  22. Delphi: TDataSetProvider C#: IDbDataAdapter (SqlDataAdapter, OleDbDataAdapter, etc)
  23. Delphi: TClientDataSet C#: DataSet, DataTable
  24. Delphi: TField C#: DataColumn
  25. Delphi: TField.Required = True C#: DataColumn.AllowDBNull = false
  26. Delphi: Variants.Null C#: System.DBNull.Value
  27.  
  28.  
  29. --- Component model ---
  30. Delphi: procedure Loaded; override; C#: Implements ISupportInitialize
  31. Delphi: property X ... default 100; C#: [DefaultValue(100)] int X { get; set; }
  32. Delphi: public property X: Y; C#: [Browseable(false)] public Y X { get; set; }
  33. Delphi: TService (Service app.) C#: System.ServiceProcess.ServiceBase
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 5:50 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC