Recursive LINQ
-
Has anyone written, know of, can recommend a good article on implementing recursion with LINQ?
-
Has anyone written, know of, can recommend a good article on implementing recursion with LINQ?
In what way, what do you want to get out? also, what implementation are you talking about? Linq to Sql or Linq to Objects? (or other)
Blog: http://www.rogeralsing.com Projects: http://www.puzzleframework.com
-
In what way, what do you want to get out? also, what implementation are you talking about? Linq to Sql or Linq to Objects? (or other)
Blog: http://www.rogeralsing.com Projects: http://www.puzzleframework.com
Well I'm tempted not to give specifics of the problem, largely because it's the theory I want to get straight in my mind, rather than just getting an answer to the current problem. However: Say I want to loop through directories and report the names of sub-directories (and sub directroies and sub directories....) is this possible with Linq? Maybe a Func can be used (although I can't see how you call the Func from within itself)?