object to byte in c#
Posted on 2006-11-12
I'm working with c# and would like to put an object type into a byte. I found some documentation on how to put a struct into a buffer and how to dynamically allocate memory to copy a void* to another void*, but not how to copy an object into a buffer. I also looked at MemoryStream and BitConverter. If anyone has any ideas, I'm more than happy to hear them!