* DataRelationCollection.cs: Sequester NET_2_0 and NET_1_1 specific code into separat...
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 5 Jan 2009 07:31:45 +0000 (07:31 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 5 Jan 2009 07:31:45 +0000 (07:31 -0000)
svn path=/trunk/mcs/; revision=122411

mcs/class/System.Data/System.Data/ChangeLog
mcs/class/System.Data/System.Data/DataRelationCollection.cs

index 16f572dee10307288b1bbd91ef58e583b501ce8d..42e158ca68658480e9bc9c726ce992fd6c39cf4a 100644 (file)
@@ -1,5 +1,8 @@
 2009-01-04  Raja R Harinath  <harinath@hurrynot.org>
 
+       * DataRelationCollection.cs: Sequester NET_2_0 and NET_1_1
+       specific code into separate parts.
+
        * DataTableCollection.cs (BinarySerialize_Schema): New.
        (BinarySerialize_Data): Likewise.  Carved out of ...
        * DataSet.cs (BinarySerialize): ... this.
index 799bcbde28c410de811dea91e11feff316236437..e2b5582a62e0bd0a68d38849858a7f3ff821cdcc 100644 (file)
@@ -47,10 +47,7 @@ namespace System.Data {
                 "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
        [DefaultEvent ("CollectionChanged")]
        [DefaultProperty ("Table")]
-#if !NET_2_0
-       [Serializable]
-#endif
-       public abstract class DataRelationCollection : InternalDataCollectionBase {
+       public abstract partial class DataRelationCollection : InternalDataCollectionBase {
                /// <summary>
                /// Summary description for DataTableRelationCollection.
                /// </summary>
@@ -490,13 +487,6 @@ namespace System.Data {
                                Add (relation);
                }
 
-#if NET_2_0
-               public void CopyTo (DataRelation [] array, int index)
-               {
-                       CopyTo ((Array) array, index);
-               }
-#endif
-
                internal virtual void PostAddRange ()
                {
                }
@@ -637,4 +627,17 @@ namespace System.Data {
 
                #endregion
        }
+
+#if !NET_2_0
+       [Serializable]
+       partial class DataRelationCollection {
+       }
+#else
+       partial class DataRelationCollection {
+               public void CopyTo (DataRelation [] array, int index)
+               {
+                       CopyTo ((Array) array, index);
+               }
+       }
+#endif
 }