/// <summary> /// Можем пойти еще дальше.. /// </summary> public static LogEntryReader FromFile(string fileName) { var fs = new FileStream(fileName, FileMode.Open); var parser = LogEntryParser.Create(fileName); return(new LogEntryReader(fs, parser)); }
public LogEntryReader(Stream stream, LogEntryParser parser) { _stream = stream; _parser = parser; }