Question
C# problem : Create a Map class that stores a collection of key/value pairs. The key/value pairs should be implemented using a Pair class that
C# problem :
Create a Map class that stores a collection of key/value pairs. The key/value pairs should be implemented using a Pair class that has the fields and properties First and Second. The Pair class and the Map class must be generic so that the keys can be of any type and the values can be of any type. The Map class should include methods for adding a new key/value pair, searching for a value by supplying the key, returning all the keys in a map, clearing the map in order to start over, and a size method that returns the number of key/value pairs in the map
Use the Map class in an application of your choosing. You can implement a word dictionary or a phone book or something else that functions like a dictionary
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started