I tried to serialize a compilation unit (equivalent to CodeDOM) with NRefactory (from SharpDevelop 4), but an exception occurs: stack overflow.
( maybe a circular reference)
If you want to reproduce the problem, download the sources of SharpDevelop:
Then open the NRefactoryDemo project, and try to serialize "astView.Unit".
It may be a good test to check the stability of sharpSerializer, by the way. ;)