* XmlTextWriter2.cs : I could make previous change only in 2.0 mode. svn path=/trunk/mcs/; revision=87261
@@ -1,3 +1,7 @@
+2007-10-10 Atsushi Enomoto <[email protected]>
+
+ * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : When it is at Error state, do not try to close
@@ -420,12 +420,16 @@ namespace Mono.Xml
public override void Close ()
{
+#if NET_2_0
if (state != WriteState.Error) {
+#endif
if (state == WriteState.Attribute)
WriteEndAttribute ();
while (open_count > 0)
WriteEndElement ();
}
if (close_output_stream)
writer.Close ();