【发布时间】:2013-12-07 16:01:36
【问题描述】:
给定一些字典
Dictionary<string, string> GroupNames = new Dictionary<string, string>();
Dictionary<string, string> AddedGroupNames = new Dictionary<string, string>();
我无法将它们合并为一个:
GroupNames = GroupNames.Concat(AddedGroupNames);
因为“类型不能被隐式转换”。我相信(我的代码证明我是真的)它们的类型是相同的——我忽略了什么?
【问题讨论】:
-
可以安全地假设
GroupNames和AddedGroupNames之间不会发生密钥冲突吗?