943,929 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 955
  • C# RSS
Apr 26th, 2008
0

Changing from Delphi to C#

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AliAlNajjar is offline Offline
1 posts
since Apr 2008
Apr 26th, 2008
0

Re: Changing from Delphi to C#

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#".
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: <Help!!> I need to retrieve an autonumber from microsoft access using visual C#
Next Thread in C# Forum Timeline: Documents Scanning





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC