Просмотр исходного кода

2007-10-10 Atsushi Enomoto <[email protected]>

	* XmlTextWriter2.cs : I could make previous change only in 2.0 mode.


svn path=/trunk/mcs/; revision=87261
Atsushi Eno 18 лет назад
Родитель
Сommit
cfbd08e86f

+ 4 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -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

+ 4 - 0
mcs/class/System.XML/System.Xml/XmlTextWriter2.cs

@@ -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 NET_2_0
 			}
+#endif
 
 			if (close_output_stream)
 				writer.Close ();