I've got a parse tree structure that I am traversing using recursion in order to find all descendant nodes of a given type. It seems like the same should be possible with Linq but I can't figure out the syntax (still wrapping my head around the syntactical brain thunk between Linq and good old procedural programming). My recursive method looks like so: Code Snippet class NonTerminalNode : SyntaxNode { private List m_array = new List(); protected List FindDescendants() where T : NonTerminalNode {
Read More...