Ver Fonte

2005-11-07 Atsushi Enomoto <[email protected]>

	* XmlSchemaValidator.cs : sealed.
	* ValidationEventArgs.cs : not sealed in 2.0.
	* XmlSchemaCollection.cs : added private ICollection.Count (to erase
	  IsVirtual difference).


svn path=/trunk/mcs/; revision=52638
Atsushi Eno há 20 anos atrás
pai
commit
596ecb5cdc

+ 7 - 0
mcs/class/System.XML/System.Xml.Schema/ChangeLog

@@ -1,3 +1,10 @@
+2005-11-07  Atsushi Enomoto <[email protected]>
+
+	* XmlSchemaValidator.cs : sealed.
+	* ValidationEventArgs.cs : not sealed in 2.0.
+	* XmlSchemaCollection.cs : added private ICollection.Count (to erase
+	  IsVirtual difference).
+
 2005-10-17  Lluis Sanchez Gual  <[email protected]>
 
 	* XmlSchemaSerializer.cs: Arrays of XmlNode don't

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

@@ -28,7 +28,11 @@ namespace System.Xml.Schema
 	/// <summary>
 	/// Summary description for ValidationEventArgs.
 	/// </summary>
+#if NET_2_0
+	public class ValidationEventArgs : EventArgs
+#else
 	public sealed class ValidationEventArgs : EventArgs
+#endif
 	{
 		private XmlSchemaException exception;
 		private string message;

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

@@ -179,6 +179,10 @@ namespace System.Xml.Schema
 			return new XmlSchemaCollectionEnumerator(schemaSet.Schemas());
 		}
 
+		int ICollection.Count {
+			get { return Count; }
+		}
+
 		// interface Methods
 		void ICollection.CopyTo (Array array, int index)
 		{

+ 1 - 1
mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidator.cs

@@ -80,7 +80,7 @@ using ValException = System.Xml.Schema.XmlSchemaValidationException;
 
 namespace System.Xml.Schema
 {
-	public class XmlSchemaValidator
+	public sealed class XmlSchemaValidator
 	{
 		enum Transition {
 			None,