Skip to content

Instantly share code, notes, and snippets.

@elutsky
elutsky / gist:11361196
Last active Aug 29, 2015
ToJson() extension method serialization order with ServiceStack
View gist:11361196
public class LogMessage
{
// This property moved to be overriden in derived classes
protected string _time = DateTime.UtcNow.ToString("dd/MM/yyyy HH:mm:ss.fff");
public LogLevel Level { get; protected set; }
}
public class InfoLogMessage : LogMessage
{
You can’t perform that action at this time.