如何将重复键添加到字典< string,string> [英] how to add duplicate keys to dictionary<string,string>
本文介绍了如何将重复键添加到字典< string,string>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将重复键添加到字典
how to add duplicate keys to dictionary
即我已经添加了键,值对作为rollno,1
,但我需要添加相同参数到字典,但不允许添加。如何在字典中添加重复键/重复键
。
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???
推荐答案
查看:
您可以使用查找类来帮助您创建集合重复键。
You can use the Lookup class to help you create collections with duplicates keys.
这篇关于如何将重复键添加到字典< string,string>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文