public static void Write(TextWriter os, string name, XmlObject x) { if (x == null) { return; } os.WriteLine("<{0} Type=\"{1}\">", name, x.GetType().Name); x.Write(os); os.WriteLine("</{0}>", name); }
public static void WriteDynamicObject(TextWriter os, string name, XmlObject x) { os.WriteLine("<{0} {1}=\"{2}\">", name, TYPENAME, x.GetType().ToString()); x.Write(os); os.WriteLine("</{0}>", name); }