I get very confused when it comes up to byte conversation.
I need to do two convertions:
1.We have a byte[] array { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35 };
How do I convert it to string so I get “30 31 32 33 34 35”.
2.We have the same byte[] array
Now I need to convert it to ASCII(0x30 = 0, 0x31 = 1, 0x32 = 2 and so on)
When done I should get “012345”.
How do I make both conversions?
If you want the output as a single
string(as opposed toIEnumerables), you could do: