How can I add the if statement that's commented in the code snippet below?
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}
);
}