Converting string to byte
BinaryConverter.ToString(byte[]) converts a byte array to a string such as "AA-7E-81". Does anybody know how to do the reverse conversion? The obvious approach is to parse the string manully, but I think .net framework could have something to facilitate this operation.
I came across this problem when I needed to persist a byte array into an XML file. If anybody know the better approach than BinaryConverter.ToString, please let me know.

AdministratorRank #675 · 3.6K reputationPosted Feb 21, 2003, 2:25 AM EST
AdministratorRank #675 · 3.6K reputationPosted Feb 22, 2003, 8:39 AM EST
AdministratorRank #675 · 3.6K reputationPosted Feb 22, 2003, 3:12 PM EST
jhtchina12 reputationPosted Dec 29, 2004, 8:28 PM EST
jhtchina12 reputationPosted Dec 29, 2004, 8:29 PM EST
bilnaadRank #2,169 · 655 reputationPosted Jan 1, 2005, 1:10 PM EST