第一个 Dictionary<string, string> PostdicPars 已经赋值
第二个:
Dictionary<string, string> dicPars = new Dictionary<string, string>();
dicPars.Add("appID", strAppId);
dicPars.Add("requestID", strRequestId);
dicPars.Add("timestamp", strTimestamp);
dicPars.Add("mac", strMac);
合并: dicPars = dicPars.Concat(PostdicPars).ToDictionary(postParK => postParK.Key, PostParV => PostParV.Value);
更多推荐
C#快速合并两个Dictionary
发布评论