📜  linq 获取字典键和值 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.258000             🧑  作者: Mango

代码示例1
var values = dictionary.Where(x => someKeys.Contains(x.Key)).Select(x => x.Value);
 var keys = dictionary.Where(x => someValues.Contains(x.Value)).Select(x => x.Key);