[genmdesc] Fixed generator to allow instructions lengths equal to 0.
[mono.git] / mcs / class / System.Data / System.Data / InternalDataCollectionBase.cs
index d5df72ea3de624edd64d7e6d58681a020ea977b4..7cfe50e799ff2ac85623d3491ebd5233b19f9878 100644 (file)
 // distribute, sublicense, and/or sell copies of the Software, and to
 // permit persons to whom the Software is furnished to do so, subject to
 // the following conditions:
-// 
+//
 // The above copyright notice and this permission notice shall be
 // included in all copies or substantial portions of the Software.
-// 
+//
 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -46,25 +46,24 @@ using System.ComponentModel;
 namespace System.Data
 {
        /// <summary>
-       /// Base class for System.Data collection classes 
+       /// Base class for System.Data collection classes
        /// that are used within a DataTable object
-       /// to represent a collection of 
+       /// to represent a collection of
        /// relations, tables, rows, columns, and constraints
        /// </summary>
 
-       public class InternalDataCollectionBase : ICollection, IEnumerable 
-       {
+       public class InternalDataCollectionBase : ICollection, IEnumerable {
                #region Fields
 
                private ArrayList list = null;
                private bool readOnly = false;
-               private bool synchronized = false; 
+               private bool synchronized = false;
 
                #endregion
 
                #region Constructors
 
-               public InternalDataCollectionBase() 
+               public InternalDataCollectionBase ()
                {
                        list = new ArrayList();
                }
@@ -72,7 +71,7 @@ namespace System.Data
                #endregion
 
                #region Properties
-       
+
                /// <summary>
                /// Gets the total number of elements in a collection.
                /// </summary>
@@ -109,9 +108,7 @@ namespace System.Data
                /// </summary>
                [Browsable (false)]
                public object SyncRoot {
-                       get {
-                               return this;
-                       }
+                       get { return this; }
                }
 
 
@@ -123,19 +120,22 @@ namespace System.Data
                /// Copies all the elements in the current InternalDataCollectionBase to a one-
                /// dimensional Array, starting at the specified InternalDataCollectionBase index.
                /// </summary>
-               public void CopyTo(Array ar, int index) 
-               {
-                       list.CopyTo (ar, index);
-
-               }
-
-               /// <summary>
-               /// Gets an IEnumerator for the collection.
-               /// </summary>
-               public IEnumerator GetEnumerator() 
+               public
+               virtual
+               void CopyTo (Array ar, int index)
                {
-                       return list.GetEnumerator ();
-               }
+                       list.CopyTo (ar, index);
+               }
+
+               /// <summary>
+               /// Gets an IEnumerator for the collection.
+               /// </summary>
+               public
+               virtual
+               IEnumerator GetEnumerator ()
+               {
+                       return list.GetEnumerator ();
+               }
 
                internal Array ToArray (Type type)
                {