sb2.Append(String.Format("-%02X", new Object[] { Byte.valueOf(b1) })); sb2.Append(String.Format("%02X", new Object[] { Byte.valueOf(b2) }));
the problem is the byte.valueof… i dont know how to express it in c#
sb2.AppendFormat("{0:X2}{1:X2}", b1, b2));
string b1 = "+120"; byte b1b; if (!byte.TryParse(b1, out b1b)) return;
bib
string b1 = "+120"; byte b1b; if (!byte.TryParse(b1, out b1b)) return; sb2.AppendFormat($"-{b1b:X2}");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)