[c#] How to convert a structure to a byte array in C#?