Web Development
private List FlattenTree(List items,List outputItems) where T:ITree { foreach(var item in items){ outputItems.Add(item); if(item.Children.Count > 0){ return FlattenTree(item.Children, outputItems); } } return outputItems; }
No comments:
Post a Comment