TRING TO HEX como adicionar um vetor ob byte
Eu tenho o seguinte código
string s = "2563MNBJP89256666666685755854";
Byte[] bytes = encoding.GetBytes(s);
string hex = "";
foreach (byte b in bytes)
{
int c=b;
hex += String.Format("{0:x2}", (uint)System.Convert.ToUInt32(c.ToString()));
}
Imprime os valores hexadecimais. Como posso adicioná-lo em um vetor ob bytes como este?
new byte [0x32,0x35..]
In hex I have : 323536...
.e assim por diante. O próximo passo éto add then in a byte[] vector in the following format 0x32,0x35..and so on; How to do this?
VALE