Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#

LINQ to Tree - A Generic Technique for Querying Tree-like Structures

Rate me:
Please Sign up or sign in to vote.
4.93/5 (111 votes)
4 Mar 2010CPOL14 min read 360.2K   3.1K   234  
This article presents a generic approach to applying LINQ queries to tree like structures. Using T4 templates for code generation, LINQ to VisualTree (WPF), LINQ to WinForms, and LINQ to FileSystem APIs are constructed.

Revisions


  

Compare Revision Minor Date Status Editor
9 - publicly available No 9-Mar-10 5:34 Available Sean Ewington
8 No 4-Mar-10 18:24 Composing
7 No 2-Mar-10 10:37 Composing
6 No 2-Mar-10 10:36 Composing
5 No 2-Mar-10 4:14 Composing
4 No 2-Mar-10 2:22 Composing
3 No 2-Mar-10 2:16 Composing
2 No 2-Mar-10 2:11 Composing
1 No 2-Mar-10 0:51 Composing

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Scott Logic
United Kingdom United Kingdom
I am CTO at ShinobiControls, a team of iOS developers who are carefully crafting iOS charts, grids and controls for making your applications awesome.

I am a Technical Architect for Visiblox which have developed the world's fastest WPF / Silverlight and WP7 charts.

I am also a Technical Evangelist at Scott Logic, a provider of bespoke financial software and consultancy for the retail and investment banking, stockbroking, asset management and hedge fund communities.

Visit my blog - Colin Eberhardt's Adventures in .NET.

Follow me on Twitter - @ColinEberhardt

-

Comments and Discussions