Author: anagappan
Date: 2007-09-26 09:37:02 -0400 (Wed, 26 Sep 2007)
New Revision: 86393

Modified:
   trunk/mcs/class/System.Data/System.Data/ChangeLog
   trunk/mcs/class/System.Data/System.Data/DataTable.cs
   trunk/mcs/class/System.Data/System.Data/DataView.cs
Log:
* DataView.cs (ToTable): Added params keyword.

* DataTable.cs: Added XmlSchemaProvider attribute.

Modified: trunk/mcs/class/System.Data/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data/ChangeLog   2007-09-26 13:00:07 UTC 
(rev 86392)
+++ trunk/mcs/class/System.Data/System.Data/ChangeLog   2007-09-26 13:37:02 UTC 
(rev 86393)
@@ -1,3 +1,9 @@
+2007-09-26  Nagappan A <[EMAIL PROTECTED]> 
+
+       * DataView.cs (ToTable): Added params keyword.
+       
+       * DataTable.cs: Added XmlSchemaProvider attribute.
+
 2007-09-25  Konstantin Triger <[EMAIL PROTECTED]>
 
        * DataSet.cs: correct WriteAttributeString while writing xml with

Modified: trunk/mcs/class/System.Data/System.Data/DataTable.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataTable.cs        2007-09-26 
13:00:07 UTC (rev 86392)
+++ trunk/mcs/class/System.Data/System.Data/DataTable.cs        2007-09-26 
13:37:02 UTC (rev 86393)
@@ -64,6 +64,9 @@
        [DesignTimeVisible (false)]
        [EditorAttribute ("Microsoft.VSDesigner.Data.Design.DataTableEditor, "+ 
Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ 
Consts.AssemblySystem_Drawing )]
        [Serializable]
+#if NET_2_0
+       [XmlSchemaProviderAttribute ("GetDataTableSchema")]
+#endif
        public class DataTable : MarshalByValueComponent, IListSource, 
ISupportInitialize,
                                 ISerializable
 #if NET_2_0

Modified: trunk/mcs/class/System.Data/System.Data/DataView.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataView.cs 2007-09-26 13:00:07 UTC 
(rev 86392)
+++ trunk/mcs/class/System.Data/System.Data/DataView.cs 2007-09-26 13:37:02 UTC 
(rev 86393)
@@ -839,17 +839,17 @@
                {
                        return this.ToTable (tableName, false, new string[] {});
                }
-               
-               public DataTable ToTable (bool isDistinct, string[] columnNames)
+
+               public DataTable ToTable (bool isDistinct, params string[] 
columnNames)
                {
                        return this.ToTable (Table.TableName, isDistinct, 
columnNames);
                }
                
-               public DataTable ToTable (string tablename, bool isDistinct, 
string[] columnNames)
+               public DataTable ToTable (string tablename, bool isDistinct, 
params string[] columnNames)
                {
                        if (columnNames == null)
                                throw new ArgumentNullException ("columnNames", 
"'columnNames' argument cannot be null.");
-
+ 
                        DataTable newTable = new DataTable (tablename);
 
                        DataColumn[] columns;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to