Jar*_*Par 14
请尝试以下方法
bool allPopulated = map.All(p => p.Value != null && p.Value.Count > 0);
Run Code Online (Sandbox Code Playgroud)
您可以使用Enumerable.All扩展方法(LINQ扩展方法的一部分).
bool allPopulated = yourDictionary.All(p => p.Value != null && p.Value.Count > 0);
Run Code Online (Sandbox Code Playgroud)