2007-05-07 Adar Wesley <adarw@mainsoft.com>
authorAdar Wesley <adar@mono-cvs.ximian.com>
Mon, 7 May 2007 15:39:04 +0000 (15:39 -0000)
committerAdar Wesley <adar@mono-cvs.ximian.com>
Mon, 7 May 2007 15:39:04 +0000 (15:39 -0000)
        * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
        parameter.

        * DataTable.cs: added implementation of IXmlSerializable. Added missing
        method ReadXmlSerializable.

svn path=/trunk/mcs/; revision=76838

mcs/class/System.Data/System.Data/ChangeLog
mcs/class/System.Data/System.Data/ConstraintCollection.cs
mcs/class/System.Data/System.Data/DataTable.cs

index 8428855d346fb3acd415d1e39bdd286f355710bb..ff1bb429bd76cb70e2a7603d5c89533562fc3596 100644 (file)
@@ -1,3 +1,11 @@
+2007-05-07  Adar Wesley <adarw@mainsoft.com>
+
+       * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[] 
+       parameter.
+
+       * DataTable.cs: added implementation of IXmlSerializable. Added missing
+       method ReadXmlSerializable.
+
 2007-04-19  Chris Toshok  <toshok@ximian.com>
 
        * DataColumnCollection.cs (Add): the Element in our
index 0f282c21455804cd6ecec3462fcf317afcc4f831..b77be1ff278914a2183a095c07c407c070f6c75f 100644 (file)
@@ -424,5 +424,12 @@ namespace System.Data {
                                CollectionChanged(this, ccevent);
                        }
                }
+
+#if NET_2_0
+               public void CopyTo (Constraint [] array, int index) 
+               {
+                       base.CopyTo (array, index);
+               }
+#endif
        }
 }
index 2621060d77b1d496d6fddd39f1d70d53e9e1ef15..f2490e2d634d2eef55628eec2c1d7f70f3cf5d74 100644 (file)
@@ -67,7 +67,7 @@ namespace System.Data {
        public class DataTable : MarshalByValueComponent, IListSource, ISupportInitialize,\r
                                 ISerializable\r
 #if NET_2_0\r
-                                , ISupportInitializeNotification\r
+                                , ISupportInitializeNotification, IXmlSerializable\r
 #endif\r
        {\r
                #region Fields\r
@@ -1691,6 +1691,27 @@ namespace System.Data {
                }\r
 \r
 #if NET_2_0\r
+\r
+               #region IXmlSerializable Members\r
+\r
+               [MonoNotSupported("")]\r
+               XmlSchema IXmlSerializable.GetSchema () \r
+               {\r
+                       return GetSchema ();\r
+               }\r
+\r
+               void IXmlSerializable.ReadXml (XmlReader reader) \r
+               {\r
+                       ReadXml (reader);\r
+               }\r
+\r
+               void IXmlSerializable.WriteXml (XmlWriter writer) \r
+               {\r
+                       WriteXml (writer);\r
+               }\r
+\r
+               #endregion\r
+\r
                 /// <summary>\r
                 ///     Loads the table with the values from the reader\r
                 /// </summary>\r
@@ -2178,6 +2199,12 @@ namespace System.Data {
                        if (target != null)\r
                                target.CopyProperties (this);\r
                }\r
+\r
+               [MonoNotSupported("")]\r
+               protected virtual void ReadXmlSerializable (XmlReader reader)\r
+               {\r
+                       throw new NotImplementedException ();\r
+               }\r
 #endif\r
 \r
                /// <summary>\r