Dictionary<string, string> FindPublicBaseDic = dic_Public_base_data.Where(item => item.Key.Equals(varValue.ToString())).ToDictionary(item => item.Key, item => item.Value);
C#从Dictionary中查找指定的key或value并将结果存入Dictionary
最新推荐文章于 2024-09-04 15:11:48 发布
Dictionary<string, string> FindPublicBaseDic = dic_Public_base_data.Where(item => item.Key.Equals(varValue.ToString())).ToDictionary(item => item.Key, item => item.Value);