Ver Fonte

2005-10-04 Atsushi Enomoto <[email protected]>

	* XmlReader.cs : Name is virtual in NET_2_0.


svn path=/trunk/mcs/; revision=51178
Atsushi Eno há 20 anos atrás
pai
commit
a10cc38d1a

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

@@ -1,3 +1,7 @@
+2005-10-04  Atsushi Enomoto <[email protected]>
+
+	* XmlReader.cs : Name is virtual in NET_2_0.
+
 2005-10-03  Atsushi Enomoto <[email protected]>
 
 	* XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :

+ 10 - 0
mcs/class/System.XML/System.Xml/XmlReader.cs

@@ -156,7 +156,17 @@ namespace System.Xml
 
 		public abstract string LocalName { get; }
 
+#if NET_2_0
+		public virtual string Name {
+			get {
+				return Prefix.Length > 0 ?
+					String.Concat (Prefix, ":", LocalName) :
+					LocalName;
+			}
+		}
+#else
 		public abstract string Name { get; }
+#endif
 
 		public abstract string NamespaceURI { get; }