Re: Delphi to C#?



Tom a écrit :

Thanks to all for your input.

These are exactly the type of utilities that I am looking for:
http://www.netcoole.com/
http://www.turnsharp.com/

I think the cost is well worth the savings in time.

This kind of utility may convert code, line for line, but it will not account for the differences in design that are necessary to account for Delphi's deterministic finalisation versus C#'s garbage collected memory model.

Also C# 2.0 has a great many language and framework features that Delphi doesn't yet support; simply translating the code will not allow you to make use of more efficient, better designed code available in .NET 2.0+

WinForms allows binding of controls directly to properties of objects, something that Delphi cannot yet cope with; in fact, .NET allows controls to be the datasource for other controls. There are just so many extra, new, useful features that, to ignore, would mean less efficient programming.

There is a whole different design ethic behind .NET compared to Win32; most importantly that *everything* in .NEt is essentially an object whereas in Delphi for Win32 methods it is not yet possible to have every type assignable to a common type of variable/field like System.Object, thus providing useful common methods like ToString.

IMO, blindly converting code could end up providing a very poor .NET version of what might otherwise be an excellent application.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
.



Relevant Pages

  • Re: Late majority
    ... Does anyone on VCL team know the ... DataSet just to get data binding to controls? ... Only in Delphi. ... make it so we can design applications faster better ...
    (borland.public.delphi.non-technical)
  • Controls which support Transparent background
    ... Framework and Microsoft vision of the future. ... VDS offers you complete set of Visual Controls, ... Separated modules for run-time and design time modes. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Definition of outdated...
    ... There are often a reference to a programming language to be 'outdated', ... Looking strictly at the wording, then Java is more outdated than Delphi, ... What imo should be outdated is how money controls hype that controls ...
    (borland.public.delphi.non-technical)
  • Software and a Perfect Society
    ... They don't buy future security problems. ... The developers have chosen to include this for "service and ... features" and failed to put in proper controls at the start, ... if design "right" this could all be avoided. ...
    (comp.dcom.telecom)
  • Re: Design documents versus prototypes
    ... Then I got a bollocking for not producing design documents so that the ... I had taken the requirements document and used the RAD power of Delphi ... I said, this is an heterogenous system, and when I built the prototype, ...
    (borland.public.delphi.non-technical)

Loading