Delphi and C# comparison
This Delphi and C# comparison was taken from Dan Miser's blog here.
Features C# has that Delphi doesn't
- foreach
- operators using, lock, checked and unchecked
- block scoped variables
- case statements with strings
- assembly internal classes
- namespaces can span code units
- implicit array dimensioning: int[] a = new int{1,2,3};
- ternary operator ( ? : )
- can use classes from namespaces without importing the whole namespace
- circular references are possible
- try..catch..finally
- assignment operators (+=, ++, -=, etc)
- multi-file assemblies
- You don't need to distribute Borland.Delphi.dll
Features Delphi has that C# doesn't
- sub-range types
- enums and sets are first-class types
- class type support
- virtual constructors
- virtual class methods
- class references
- nested procedures
- non-default index properties
- can defines constant arrays and records
- resourcestrings
- default parameters
- variants
- arrays with non-integral subscripts
- sets with more than 64 elements
- message handlers
- unions (variant records)
- untyped parameters
- const parameters
- class helpers
- smart linker
- named constructors
- array properties
- unmanaged exports
- super fast single pass compiler, compiling any project faster than C#, using less memory at the same time.
So, what are you waiting for? Buy Delphi today!