hi guys i want to convert from ascii code to normal code cause i made a method that converts from normal code to ascii code and i want to revers it here is my method to convert to ascii
public string CreatSerial()
{
string serial = "";
string P1, P2 = "";
string Befor_Serial = GetDeviceSerial().Trim() + 5;
P1 = Befor_Serial.Substring(0, Befor_Serial.Length / 2);
P2 = Befor_Serial.Substring(Befor_Serial.Length / 2);
Befor_Serial = P2 + "ICS" + P1;
char[] strarr = Befor_Serial.ToCharArray();
Array.Reverse(strarr);
serial = new string(strarr);
byte[] asciiBytes = Encoding.ASCII.GetBytes(serial);
serial = "";
foreach (byte b in asciiBytes)
{
serial += b.ToString();
}
return serial;
}