What am I doing wrong here? How can I execute my action?
var recurse = new Action<IItem, Int32>((item, depth) =>
{
if (item.Items.Count() > 0) recurse(item, depth + 1); // red squiggly here
// ...
});
I'm getting a red squiggly when calling recurse
saying "method, delegate or event expected".