Kaynağa Gözat

2009-06-05 Atsushi Enomoto <[email protected]>

	* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
	  attributes from cache that are *not* in current element.


svn path=/trunk/mcs/; revision=135517
Atsushi Eno 16 yıl önce
ebeveyn
işleme
83edc6dd33

+ 5 - 0
mcs/class/System.Runtime.Serialization/System.Xml/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-05  Atsushi Enomoto  <[email protected]>
+
+	* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
+	  attributes from cache that are *not* in current element.
+
 2009-06-05  Atsushi Enomoto  <[email protected]>
 
 	* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes

+ 2 - 2
mcs/class/System.Runtime.Serialization/System.Xml/XmlBinaryDictionaryReader.cs

@@ -383,7 +383,7 @@ namespace System.Xml
 
 		public override string GetAttribute (string name)
 		{
-			for (int i = 0; i < attributes.Count; i++)
+			for (int i = 0; i < attr_count; i++)
 				if (attributes [i].Name == name)
 					return attributes [i].Value;
 			return null;
@@ -391,7 +391,7 @@ namespace System.Xml
 
 		public override string GetAttribute (string localName, string ns)
 		{
-			for (int i = 0; i < attributes.Count; i++)
+			for (int i = 0; i < attr_count; i++)
 				if (attributes [i].LocalName == localName &&
 					attributes [i].NS == ns)
 					return attributes [i].Value;