internal void LogDetailMessage(string header, string message = null) { Details.AppendText(string.Concat( header.StartsWith("{") ? string.Empty : "// ", header, Environment.NewLine)); if (string.IsNullOrWhiteSpace(message)) { return; } Details.AppendText(string.Concat( message.StartsWith("{") ? string.Empty : "// ", message, Environment.NewLine)); }