link中Dictionar能不能使用重复的key?如果要重复Key那怎么实现?
看你要做什么,如果是需要对Value分组,可以用Dictionary<TKey, List<TValue>>,如果你只是需要key-value配对,可以用List<KeyValuePair<TKey, TValue>>KeyValuePair是可以单独使用的
Dictionary<TKey, List<TValue>>
List<KeyValuePair<TKey, TValue>>
不能,既然是字典,就不能重复,想重复,你自己造个list好了