دوست عزیز آقای  جواد رحمت زاده خواستار مقایسه دلفی و سی شارپ بودن که ما هم لبیک گفتیم به فرمایششون ...

اين روزها بحث اينكه C#‌ بهتراست يا Delphi در تمامي مجامل برنامه نويسان داغ داغ هست!

حالا براي اينكه منم در اين زمينه يك كمكي به شما Delphi كارا بكنم كه كم نياريد يك ليستي در پايين آوردم كه امكانات اين دو محصول رو با هم مقايسه ميكنه خودتون ببينيد و مقايسه كنيد!!!

امكاناتي كه C# دارد و Delphi  ندارد:


  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

امكاناتي كه Delphi دارد و C# ندارد:


  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.

به نظر منكه فقط مورد 24 Delphi به همه خصوصيات C# مي ارزه ;-). خوب پس ديگه شك نكنيد كه Delphi بهتر از C# هست!!!

البته  این مقایسه مربوط به زمان دلفی ۹ هستش و دلفی ۱۰ و ۱۱ که  ویژگی های خیلی بیشتری به خودشون اختصاص دادن در اینجا لحاظ نشده است که اگر شود چه شود !!!

البته مطالب فوق از وبلاگ دوست بسیار عزیزم جناب صادق علوی زاده هستش : http://delphi.rayanir.com