Iterate through nested list with many layers
问题 Consider the scenario where you have a collection, and inside that collection are particular objects. Those objects also hold a collection, and inside those collections are more of the same objects. It's a nested collection with many layers. List<WorkItemClassificationNode> items; List<WorkItemClassificationNode> subItems = items.Children; List<WorkItemClassificationNode> subSubItems = subItems.Children; // etc I just want a method to iterate through each of those layers so the same logic is