public override string ToString()
{
string output = "";
switch (Type)
{
case TraceType.Info:
output += "Info: ";
break;
case TraceType.Warining:
output += "Warining: ";
break;
case TraceType.Error:
output += "Error: ";
break;
default:
throw new ArgumentOutOfRangeException();
}
if (Title != null)
{
output += Title + Environment.NewLine;
}
if (Description != null)
{
output += Description + Environment.NewLine;
}
if (Content != null)
{
output += Content + Environment.NewLine;
}
return output;
}
}