// 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
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();
}
#endregion
#region Properties
-
+
/// <summary>
/// Gets the total number of elements in a collection.
/// </summary>
/// </summary>
[Browsable (false)]
public object SyncRoot {
- get {
- return this;
- }
+ get { return this; }
}
{
list.CopyTo (ar, index);
}
-
+
/// <summary>
/// Gets an IEnumerator for the collection.
/// </summary>
#if NET_2_0
virtual
#endif
- IEnumerator GetEnumerator ()
+ IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}