Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
Convert Struct to byte[]
Convert Struct to byte[]
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
TJO
#1
Convert Struct to byte[]
Nov 15 '05, 06:16 AM
Hello,
What is the easiest way to convert a struct containing string members to a
byte[]?
THanks
Maciej Kromrych
#2
Nov 15 '05, 06:16 AM
Re: Convert Struct to byte[]
"TJO" <no@spam.net> wrote in message
news:OQWZCNsUDH A.1748@TK2MSFTN GP12.phx.gbl...[color=blue]
> Hello,
>
> What is the easiest way to convert a struct containing string members to a
> byte[]?[/color]
Check this:
http://groups.google.com/groups?selm=%237tARJk5BHA.1656%40tkmsftngp05
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
Comment
Post
Cancel
Thomas Scheidegger [MVP]
#3
Nov 15 '05, 06:18 AM
Re: Convert Struct to byte[]
> Check this:[color=blue]
>
http://groups.google.com/groups?selm...%40tkmsftngp05
[/color]
modified versions:
http://groups.google.com/groups?selm=e10%24YitCCHA.2296%40tkmsftngp05
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html
-
http://dnetmaster.net/
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment