public static Entry makeEntry(Messageclass Class = Messageclass.Error, string Message = "", string Application = "", string Logdate = "") { DateTime Ld; DateTime.TryParse(Logdate, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.AssumeUniversal, out Ld); return(new Entry(Class, Message, Application, Ld)); }
public Entry(Messageclass Class, string Message, string Application, DateTime Logdate) { this.Id = Id; this.Class = Class; this.Message = Message ?? string.Empty; this.Application = Application ?? string.Empty; this.Logdate = Logdate; }