I want to create a class which will have two properties, e.g. key & value.
And I want one method which will give me a value based on the key.
So what is the code? I know Hashtable but how to implement it in C#? Can I have a string as a key?