471,350 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Convert bit string to byte

How to convert bit string to byte and vice versa? For example:
string bitstr = "11111111";
after conversion should get 0xFF

--
Vit Zayko
Dec 8 '05 #1
1 6161
HI Vitaly,

Check this:

http://www.codeproject.com/dotnet/Bi...onversions.asp

Regards - Octavio

"Vitaly Zayko" <vitaly_at_zayko_dot_net> escribio en el mensaje
news:Ox*****************@TK2MSFTNGP09.phx.gbl...
How to convert bit string to byte and vice versa? For example:
string bitstr = "11111111";
after conversion should get 0xFF

--
Vit Zayko

Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Nathan | last post: by
1 post views Thread by Swarup | last post: by
6 posts views Thread by Ricardo Quintanilla | last post: by
6 posts views Thread by Bob Altman | last post: by
12 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.