/// <summary> /// /// </summary> /// <param name="bytes"></param> /// <param name="pr"></param> private void AddCommuniFailDetail(byte[] bytes, ParseResult pr) { CommuniFailDetail cfd = new CommuniFailDetail( this.Device.DeviceType, this.Opera.ToString(), pr.ToString(), bytes); this.Device.CommuniFailDetails.Add(cfd); string s = string.Format("Parse '{0} {1}' fail, opera '{2}', bytes '{3}'", Device.DeviceType, Opera.Name, pr, bytes == null ? "" : BitConverter.ToString(bytes)); log.Debug(s); }