I'm trying to serialize an object to an XmlWriter using the following YAXLib's YAXSerializer method:
var serializer = new YAXSerializer(typeof(SomeClass));
/* Serialize to XmlWriter */
var stringWriter = new StringWriter();
var xmlWriter = XmlWriter.Create(stringWriter);
var result1 = stringWriter.ToString(); // result1 is ""
/* Serialize to String */
var restult2 = serializer.Serialize(city); // result2 is "<SomeClass>...</SomeClass>"
I also posted this same question in stackoverflow.com:
just in case.