Re: how to keep a reference to an object?

Tech-Archive recommends: Fix windows errors by optimizing your registry



how do you mean that 'there's no need to make a byref param'?


"Mattias Sjögren" <mattias.dont.want.spam@xxxxxxxx> wrote in message
news:%233lCzQk2HHA.1100@xxxxxxxxxxxxxxxxxxxxxxx
on this way we keep just a reference to a object (32-bit) or we create a
new
one?

You just copy the reference, no new object is created (assuming
object1 is a reference type). There's no need to make v0 a ByRef
parameter.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


.



Relevant Pages