public void AddBookmarks(IEnumerable <int> targetIndexes) { if (targetIndexes == null) { throw new ArgumentNullException(nameof(targetIndexes)); } foreach (var targetIndex in targetIndexes) { _bookmarks.Add(new Bookmark() { Target = targetIndex }); } }