G
Greg Ennis
If I run the following code:
Byte[] bytes = System.Text.Encoding.ASCII.GetBytes("test");
return BitConverter.ToString(bytes);
I get the string "74-65-73-74" back. My question is, what is the
easiest way to convert the string back to "test"?
Can it be done without breaking the string and using a loop, etc.? I
have tried many methods, but can't find a way without using a loop. It
seems silly that the framework can go one direction but not the other.
Any help please?
Byte[] bytes = System.Text.Encoding.ASCII.GetBytes("test");
return BitConverter.ToString(bytes);
I get the string "74-65-73-74" back. My question is, what is the
easiest way to convert the string back to "test"?
Can it be done without breaking the string and using a loop, etc.? I
have tried many methods, but can't find a way without using a loop. It
seems silly that the framework can go one direction but not the other.
Any help please?