I have a movie cache dictionary where key is string and value is movie.
Dictionary<string, Movie> movieCache = new Dictionary<string, Movie>();
movieCache.Add(string.Format("{0}:{1}:{2}", newMovie.Year, newMovie.Title, newMovie.Genre), newMovie);
I have another list say joe's favorite movie list. for example
List<IMDBMovie> joesFavMovie // some list;
I need to display two lists. One: the movies from the cache that is in joesFavMovie and matches the year, title and Genre. Two: the movies from the cache that is in joesFavMovie and matches the year, title.
I was able to display the first list form the cache. However i was creating another dictionary cache from the existing dictionary to display the second list. Is there a way to use the same cache for both the lists. I am not sure if wild card is the best solution.
Thanks in advance. The title might not be appropriate. please suggest if that needs to be changed.