I have a incoming stream of bytes (unsigned char) from either a file or network. I need this data placed in a class, and is looking for a NET-way of doing this.
I bet some does this all the time, so I guess there is a better method to do this than using BitConverter.
I realize I supplied too litle information. Let me try with an example class:
class data {
void doSmething();
int var1;
float var2;
}
Then I want to transfer the data (var1 and var2) contained in this class over f.ex. a network socket and receive the data on the other end