1
我想创建一个array
的值仅与我的dictionary
的值等于零的元素。linq获取数组元素查询
Dictionary<string, int> dict = new Dictionary<string, int>();
int notZeroValues = dict.Values.ToArray(); //sth here to get these elements efficiently
请帮忙?
是一个错字?你的意思是**值不等于零? –