TraceViewItem.cs
26 lines
| 762 B
| text/x-csharp
|
CSharpLexer
/ Implab.Diagnostics.Interactive / TraceViewItem.cs
cin
|
r45 | using System; | ||
using System.Collections.Generic; | ||||
using System.Linq; | ||||
using System.Text; | ||||
using System.Threading.Tasks; | ||||
namespace Implab.Diagnostics.Interactive { | ||||
cin
|
r47 | public class TraceViewItem { | ||
string m_formattedValue; | ||||
public string Message { get; set; } | ||||
public int Timestamp { get; set; } | ||||
public int Indent { get; set; } | ||||
public int Thread { get; set; } | ||||
cin
|
r48 | public string Channel { get; set; } | ||
cin
|
r47 | |||
public string FormattedMessage { | ||||
get { | ||||
if (m_formattedValue == null) { | ||||
m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | "); | ||||
} | ||||
return m_formattedValue; | ||||
} | ||||
} | ||||
cin
|
r45 | } | ||
} | ||||