When I read all the bytes from a string using Encoding.Unicode, It gives me blank (0) values.
When I run this code:
byte[] value = Encoding.Unicode.GetBytes("Hi");
It gives me the output
72
0
105
0
I know this is because UTF-16 stores 2 bytes and the 0 is just the second byte, but my question is should i delete the 0's? since as far as I know, they do not do anything and my program requires to loop through the array so the 0's would only make it slower.