views:

531

answers:

0

I have a object

struct _NETINFO { }

and I want to convert it to a Byte[] using Compact Framework, I tried the following without sucess:

_NETINFO info = new _NETINFO();
byte[] buffer = (byte[])info;

And it doesn't work! The only other sugestion I found is to use the BinaryFormatter which isn't available in CF!

Any other sugestions?