how to add duplicate keys to dictionary
i.e i have already added the key,value pair as rollno,1
but i need to add the same parameter to the dictionary,but it is not allowing to add. how to add duplicated keys/repeated key in dictionary
.
or any other choice..
any idea???
Check out this:
What is the point of Lookup<TKey, TElement>?
You can use the Lookup class to help you create collections with duplicates keys.