如何添加下面代码片段中注释的 if 语句?
Dictionary<string,int> toReturn;
List<string> lookup = GetIt();
foreach (string test in lookup)
{
var testDictionary = ToGroupDictionary(test);
testDictionary.Keys.ToList().ForEach(k =>
//if(true){add toReturn list}
);
}