Example #1
0
 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
         });
     }
 }