Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public static List<List<T>> ToListOfLists<T>(DataTree<T> tree)
  2. {
  3. List<List<T>> list = new List<List<T>>();
  4.  
  5. foreach (List<T> b in tree.Branches)
  6. {
  7. list.Add(b);
  8. }
  9. return list;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement