Reflective XML Serializer with Recursion Detection

by Mwwhited 7. June 2009 11:06
Not being able to serialize Anonymous Types with the build in XmlSerializer was kind of a bummer for me, so I created this set of extension methods. Another feature I added at recursion detection based on the .GetHasCode() to prevent recursive object graphs from causing stack overflows. It's ugly... but it works... I was going for a proof of concept so I'm happy for now. -Enjoy, Matt using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Lin... [More]

Tags: , , , ,


Powered by BlogEngine.NET
Theme by Mads Kristensen