Changing from Delphi to C#

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 1
Reputation: AliAlNajjar is an unknown quantity at this point 
Solved Threads: 0
AliAlNajjar AliAlNajjar is offline Offline
Newbie Poster

Changing from Delphi to C#

 
0
  #1
Apr 26th, 2008
Hi everybody.
I found this line on this site :: About C# eqivalants of Delphi types:::

Delphi: Variant C#: object (with boxing)

Now..
I need help understanding this line. A tiny example can help.
Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Changing from Delphi to C#

 
0
  #2
Apr 26th, 2008
I don't quite "get" that line either, taken out of context. But I can tell you that everything in C# is an object, it's the most fundamental "type". This is roughly equivalent to the "variant" type in other languages. "Boxing" is similar to casting. Specifically, though, it is a way of treating value types as generic objects. A value type would be, for example, an integer. There are special cases where you might desire to have a value treated as an object, in my experience this has come up a time or two when doing COM Interop in C#.

So I think what's being said is "Delphi Variant types are roughly equivalent to Objects in C#".
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC