public void ShowXmlTest() { var ss = new StateSerializer(); ss.IgnoreNamespace("System.Xml"); var str = ss.ToXml(new MySubClass()); Console.WriteLine(str); }