Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just added 3 values for a specific key in a dictionary. now i need to remove one value for that specific key.wil u plz suggest how to do this. Thanks in advance
Posted
Comments
senguptaamlan 10-Aug-10 2:32am    
please, post the code....

A dictionary only allows one value per key. If you have a container that allows many, get the collection referenced by the key, then remove the value you need to remove from the collection.
 
Share this answer
 
I am wondering how you can add 3 values for a specific name without raising an exception?:cool:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900