1
Vote

NetFlixSession.FindMovies throws exception on add

description

Dictionary.Add will throw an exception if a duplicate key is added (Example: FindMovies("Transformer")). Try:
 
movies[Convert.ToInt64 (movie.Groups["movieID"].Value)] = new Movie (Convert.ToInt64 (movie.Groups["movieID"].Value), movie.Groups["title"].Value);

comments