Re: Delphi to C#?
- From: "Joanna Carter [TeamB]" <joanna@xxxxxxxxxxxxx>
- Date: Sun, 06 May 2007 08:35:39 +0100
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
.
- Follow-Ups:
- Re: Delphi to C#?
- From: Tom
- Re: Delphi to C#?
- References:
- Delphi to C#?
- From: Tom
- Re: Delphi to C#?
- From: Tom
- Delphi to C#?
- Prev by Date: Re: D2007 - mind-numbing obstacles after upgrading
- Next by Date: Re: Load D2007 on a PC without a DVD player?
- Previous by thread: Re: Delphi to C#?
- Next by thread: Re: Delphi to C#?
- Index(es):
Relevant Pages
|
Loading