Question: C sharp please 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 sharp please

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!