Convert Char [] to <byte> List (C #)
2 answers
First you need to understand that characters are not bytes in .NET. To convert between characters (text type) and bytes (binary type) you need to use encoding (see System.Text.Encoding).
Encoding will allow you to convert between the lines of / char [] and byte []. When you have an array of bytes, there are various ways to convert this to a <byte> list - although you may not need it because byte [] implements IList <byte>.
See my article on Unicode to learn more about the text conversion part (and links to other articles).
+16