Jar*_*Par 14
请尝试以下方法
bool allPopulated = map.All(p => p.Value != null && p.Value.Count > 0);
您可以使用Enumerable.All扩展方法(LINQ扩展方法的一部分).
bool allPopulated = yourDictionary.All(p => p.Value != null && p.Value.Count > 0);
| 归档时间: | 
 | 
| 查看次数: | 172 次 | 
| 最近记录: |