Parcourir la source

2002-09-15 Gonzalo Paniagua Javier <[email protected]>

	* XmlTextReader.cs: line and position begin with 1.

svn path=/trunk/mcs/; revision=7472
Gonzalo Paniagua Javier il y a 23 ans
Parent
commit
3fcb6699a2

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

@@ -1,3 +1,7 @@
+2002-09-15  Gonzalo Paniagua Javier <[email protected]>
+
+	* XmlTextReader.cs: line and position begin with 1.
+
 2002-09-13  Gonzalo Paniagua Javier <[email protected]>
 
 	* XmlException.cs: added a new internal constructor for IXmlLineInfo

+ 2 - 4
mcs/class/System.XML/System.Xml/XmlTextReader.cs

@@ -40,10 +40,8 @@ namespace System.Xml
 	{
 		#region Constructors
 
-		[MonoTODO]
 		protected XmlTextReader ()
 		{
-			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
@@ -611,8 +609,8 @@ namespace System.Xml
 		private StringBuilder xmlBuffer; // This is for Read(Inner|Outer)Xml
 		private StringBuilder currentTag; // A buffer for ReadContent for ReadOuterXml
 		private bool saveToXmlBuffer;
-		private int line;
-		private int column;
+		private int line = 1;
+		private int column = 1;
 
 		private void Init ()
 		{