|
-
December 17th, 2002, 09:01 AM
#1
Function returns DataTable* from VC++ is an object or a pointer to the object?
I have a VC++ managed class library. A function does return a DataTable*. I use this VC++ class from CSharp. Silly question but does CSharp get the pointer to the DataTable or the whole DataTable Object itsself? Should be the datatable pointer...
Thanks
Stefan
Read Ouspensky 's "Tertium Organum"!
-
December 17th, 2002, 09:58 AM
#2
it is something as pointer, however you don't see it in c#...
-
December 17th, 2002, 12:23 PM
#3
C# uses reference(pointer) semantics for all class objects. You don't have variables that "is the object itself". It's always a pointer.
The above doesn't go for types declared as structs, though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|