Robert,

>To pass the byte thingy across to the COM world I have to change it to an
>object (I assume this is boxing?

No boxing here; arrays are already reference types.


>Why can't I simply cast thingy at the time of call to an object like so
>
>DoTheCall( ref (object)thingy );

The compiler doesn't know if the callee will modify the parameter, and if 
so, if it will be possile to cast the returned value back to a byte[]. You 
have to determinte that yourself, and do the cast manually if necessary.


Mattias

===
Mattias Sjögren
[EMAIL PROTECTED]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to