Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Binary Data

$
0
0

Hello

I have a question maybe it's simple but i did not find on Google the answer yet...

I have string and i need to convert it to binary data :

first i did  byte[] arr = System.Text.Encoding.ASCII.GetBytes(User_Data.Text);

but this i only got me byte array 

then i tried to:   BitArray bits = new BitArray(arr);

and this got me only array of true or false values.

The thing i need to do is:

i want to get array of :1010111010...

and then i want to be able to preform xor operations or any other logic operators but i want to be able to do it on each bit separate.

llike this array1[1] xor array2[3]

Thx


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>