public LogFile PreLoad() { var firstLines = FileUtils.WriteSafeReadLines(Path) .Take(2) .Aggregate(new StringBuilder(), (builder, newStr) => builder.AppendLine(newStr)).ToString(); if (string.IsNullOrEmpty(firstLines)) { return(this); } var entry = _logParser.ParseText(this, firstLines, 0); _startDate = entry?.Date; return(this); }