I have class which is Item below
public class Item 
{
  public int id { get; set; }
  public readonly List<Item> Children = new List<Item>(); 
}
and i have List of this class.
List<WorkItem> treeList = new List<WorkItem>();
I added Children to Item recursively thats its means, Item can have "n" Children and "n" Children can have "n" Children too.
- Item
- 
- Children
 
- 
- 
- Children
 
 
- 
- 
- 
- 
- .......
 
 
- 
 
- 
- 
- 
- 
- ..........
 
 
- 
 
- 
- 
- Children
 
- Item
How can i do foreach in Items all Children notwithstanding know depth of Children.
Thanks
 
    