* XamlServices.cs : fix Transform implementation.
svn path=/trunk/mcs/; revision=155374
+2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XamlServices.cs : fix Transform implementation.
+
2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
* XamlServices.cs : added a couple of missing methods.
public static void Save (string fileName, object instance)
{
- using (var xw = XmlWriter.Create (fileName))
+ using (var xw = XmlWriter.Create (fileName, new XmlWriterSettings () { OmitXmlDeclaration = true }))
Save (xw, instance);
}
if (xamlReader.NodeType == XamlNodeType.None)
xamlReader.Read ();
- xamlWriter.WriteNode (xamlReader);
-
+ while (!xamlReader.IsEof) {
+ xamlWriter.WriteNode (xamlReader);
+ xamlReader.Read ();
+ }
+ if (closeWriter)
+ xamlWriter.Close ();
}
}
}