T TJO Jul 25, 2003 #1 Hello, What is the easiest way to convert a struct containing string members to a byte[]? THanks
M Maciej Kromrych Jul 25, 2003 #2 TJO said: Hello, What is the easiest way to convert a struct containing string members to a byte[]? Click to expand... Check this: http://groups.google.com/groups?selm=#7tARJk5BHA.1656@tkmsftngp05 Perhaps you could also serialize your struct to a stream, and then read bytes back. You can also use the Encoding class to get bytes form a string. HTH, Maciej
TJO said: Hello, What is the easiest way to convert a struct containing string members to a byte[]? Click to expand... Check this: http://groups.google.com/groups?selm=#7tARJk5BHA.1656@tkmsftngp05 Perhaps you could also serialize your struct to a stream, and then read bytes back. You can also use the Encoding class to get bytes form a string. HTH, Maciej
T Thomas Scheidegger [MVP] Jul 26, 2003 #3 Check this: http://groups.google.com/groups?selm=#7tARJk5BHA.1656@tkmsftngp05 Click to expand... modified versions: http://groups.google.com/groups?selm=e10$YitCCHA.2296@tkmsftngp05
Check this: http://groups.google.com/groups?selm=#7tARJk5BHA.1656@tkmsftngp05 Click to expand... modified versions: http://groups.google.com/groups?selm=e10$YitCCHA.2296@tkmsftngp05