I am new to C# and I am trying to convert string into List. I was able to do so only if my dataRetured variable below doesn't have a letter. My code is below:
List<byte> response = new List<byte>();
string dataReturned = "62 07 00 00 04 05 00 01 A0";
response = dataReturned.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(s => Byte.Parse(s)).ToList();
Once I have a letter as A0 in dataReturned variable above I keep getting error in the response line since I am using Bye.Parse with A0. Is there an equivalent conversion for both integer representation and letter? Thanks