3
Answers

Converting string to binary?

yokzu

yokzu

12y
7.6k
1
Hi,

I am converting int values to string with binary mode like below;

string aa = Convert.ToString(128, 2);

But I want to convert a string value to binary. How can I do that?

String aa = "11101010";
Answers (3)