I have dictionary which holds my books:
Dictionary<string, book> books
Book definiton:
class book
{
string author { get; set; }
string title { get; set; }
}
I have added some books to the dictionary.
How can I check if there is a book in the Dictionary that matches the title provided by the user?
books.ContainsKey("book name");