Union a Structure and Byte Array

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
 
B

brownd3

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top