Union a Structure and Byte Array

  • Thread starter Thread starter brownd4
  • Start date Start date
B

brownd4

Hello All,

In C#, I cannot find a way to effectively union a class (or structure)
and a byte array.

Essentially, I need to do this equivalent in C:

union {
MYSTRUCT struct1;
byte bytearray[];
}

Any suggestions?

Thanks,
David
 
Thanks for the Reply Roger, but I need the structure/class and the byte
array to share the same memory space.
 
Back
Top