public virtual string ToStringDetail() { using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "ToStringDetail")) { StringBuilder sb = new StringBuilder(); try { if (this.RawData != null) { string prefix = string.Empty; sb.AppendLine(); FreeformHelper.WriteLogStringLine(sb, prefix); sb.AppendLine(prefix + string.Format("Length : {0:D}", this.RawData.Length)); sb.AppendLine("Data : "); FreeformHelper.ConvertBytesToHexString(this.RawData, sb, prefix); sb.AppendLine(); FreeformHelper.WriteLogStringLine(sb, prefix); if (this.EntityData != null) { this.EntityData.ToStringDetail(sb, "\t"); } } } catch (Exception ex) { method.Exception(ex); } return(sb.ToString()); } }
/// <summary> /// Writes the log string line. /// </summary> /// <param name="sb">The sb.</param> /// <param name="prefix">The prefix.</param> public virtual void WriteLogStringLine(StringBuilder sb, string prefix) { FreeformHelper.WriteLogStringLine(sb, prefix); }