Delphi and C# comparison

This Delphi and C# comparison was taken from Dan Miser's blog here.

Features C# has that Delphi doesn't


  1. foreach
  2. operators using, lock, checked and unchecked
  3. block scoped variables
  4. case statements with strings
  5. assembly internal classes
  6. namespaces can span code units
  7. implicit array dimensioning: int[] a = new int{1,2,3};
  8. ternary operator ( ? : )
  9. can use classes from namespaces without importing the whole namespace
  10. circular references are possible
  11. try..catch..finally
  12. assignment operators (+=, ++, -=, etc)
  13. multi-file assemblies
  14. You don't need to distribute Borland.Delphi.dll

Features Delphi has that C# doesn't


  1. sub-range types
  2. enums and sets are first-class types
  3. class type support
  4. virtual constructors
  5. virtual class methods
  6. class references 
  7. nested procedures
  8. non-default index properties
  9. can defines constant arrays and records
  10. resourcestrings
  11. default parameters
  12. variants
  13. arrays with non-integral subscripts
  14. sets with more than 64 elements
  15. message handlers
  16. unions (variant records)
  17. untyped parameters
  18. const parameters
  19. class helpers
  20. smart linker
  21. named constructors
  22. array properties
  23. unmanaged exports
  24. 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!

Comments

# re: What is __purecall?

Thursday, April 29, 2004 12:24 AM by TrackBack

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Enter the following code to ensure that your comment reaches the intended party:
Enter the numbers you see in the image: