I’ve blogged before (in hebrew) about the difficulty of serializing expression trees to XML.
To conclude my hebrew post, I’ve found a project in CodePlex, called MetaLinq which might be the solution to the problem – this open source allows to perform Linq queries over expression trees, and as a consequence, might allow serialization of the navigable expression tree.
I’ve worked in past few days to fix the code of the project to allow serializing the tree with DataContractSerializer.
The project can be downloaded from here.
The next version will :
Support XML serialization with XmlSerializer
Better documented code
Extensive test project and samples
Code improvements (thread safe, performance …)
Comments are welcomed.