Expression Tree Serialization. Overview The sample includes these components:An Expression Tree serialization API: A general purpose XML serialization of Expression Trees.
This should work over any expression tree – though there are inevitably bugs. The serialization format is fairly crude, but has been expressive enough to support the variety of expression trees I’ve tried throwing at it.A wrapper for serializing/deserializing LINQ to SQL queries: A wrapper around the expression serializer allows serializing LINQ to SQL queries and de-serializing into a query against a given DataContext. MetaLinq - LINQ to Expressions. Serialization - Serializing and Deserializing Expression Trees in C# Expression Tree Serializer.