PDA

View Full Version : مقایسه Delphi با C#



Valadi
پنج شنبه 23 اسفند 1386, 08:17 صبح
امکاناتی که C# دارد و Delphi ندارد:

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


امکاناتی که Delphi دارد و C# ندارد:

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.

به نظر منکه فقط مورد 24 Delphi به همه خصوصیات C# می ارزه ;-).

vcldeveloper
پنج شنبه 23 اسفند 1386, 08:50 صبح
منبع مطلب رو هم ذکر کنید.


امکاناتی که C# دارد و Delphi ندارد:

foreachاینو دلفی هم داره. فکر کنم از نسخه 2006 یا 2007 اضافه شده.


You don't need to distribute Borland.Delphi.dllفکر نکنم برای برنامه های دلفی که با WinForm نوشته میشند نیازی به اون اسمبلی باشه.



case statements with stringshttp://barnamenevis.org/forum/showthread.php?t=90689

Valadi
پنج شنبه 23 اسفند 1386, 10:38 صبح
این مطلب در یک سایت روسی دیدم اما لینکش یادم نیست

از نسخه 2006 یا 2007 اضافه شده

ممنون از توجهتون

Cave_Man
پنج شنبه 23 اسفند 1386, 13:27 عصر
به نظر منکه فقط مورد 24 Delphi به همه خصوصیات C# می ارزه ;-).
آرزو دارم دلفی برگرده به اون سالها!!