public LogView(LogStorage storage, int lastLine) { if (storage == null) { throw new ArgumentNullException(nameof(storage)); } if (lastLine < 0 || lastLine > storage.Count) { throw new ArgumentOutOfRangeException(nameof(lastLine)); } this.Storage = storage; this.LastLine = lastLine; }
public LogView(LogStorage storage) : this(storage, 0) { }