bool ConvertHexToByte(string hex, out byte b) { bool isByte = byte.TryParse(hex, System.Globalization.NumberStyles.HexNumber, System.Threading.Thread.CurrentThread.CurrentCulture, out b); return isByte; }