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 .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
string to byte array
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
Keith
#1
string to byte array
Jul 19 '05, 03:03 AM
Is there a simple way to convert a string to a byte array
with out having to iterate through the whole string?
Thomas Scheidegger [MVP]
#2
Jul 19 '05, 03:03 AM
Re: string to byte array
System.Text.Enc oding.Default.G etBytes( "Hello" )
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html
-
http://dnetmaster.net/
Comment
Post
Cancel
Jon Skeet
#3
Jul 19 '05, 03:03 AM
Re: string to byte array
Keith <keithm@inozsof tware.com> wrote:[color=blue]
> Is there a simple way to convert a string to a byte array
> with out having to iterate through the whole string?[/color]
Use Encoding.GetByt es with an appropriate encoding. See
http://www.pobox.com/~skeet/csharp/unicode.html
for more information.
--
Jon Skeet - <skeet@pobox.co m>
Pobox is now part of Fastmail
http://www.pobox.com/~skeet/
Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.
If replying to the group, please do not mail me too
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment