> how can I assign a byte array (read from a device) to a C# class or struct?
You can't (easily) change an existing instance, but you can create a
*new* instance using serialization. See BinaryFormatter for details.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Christian Havel - 10 Mar 2008 12:14 GMT
Thank you Jon.
Christian
> > how can I assign a byte array (read from a device) to a C# class or struct?
>
> You can't (easily) change an existing instance, but you can create a
> *new* instance using serialization. See BinaryFormatter for details.