Add locking to EventWaitHandle.Set/Reset to avoid crashes when another thread dispose...
[mono.git] / mcs / class / corlib / System.Collections / CollectionBase.cs
index 4a1d730f313db5932b80c8e1bbb2904b10eae609..75817380b13eb5d35b01001ee99ef8ef4382e114 100644 (file)
@@ -35,11 +35,14 @@ using System.Runtime.InteropServices;
 
 namespace System.Collections {
 
-#if NET_2_0
        [ComVisible(true)]
-#endif
        [Serializable]
-       public abstract class CollectionBase : IList, ICollection, IEnumerable {
+#if INSIDE_CORLIB
+       public
+#else
+       internal
+#endif
+       abstract class CollectionBase : IList, ICollection, IEnumerable {
 
                // private instance properties
                private ArrayList list;
@@ -68,12 +71,12 @@ namespace System.Collections {
                { 
                }
 
-#if NET_2_0
                protected CollectionBase (int capacity)
                {
                        list = new ArrayList (capacity);
                }
 
+               [ComVisible (false)]
                public int Capacity {
                        get {
                                if (list == null)
@@ -89,8 +92,6 @@ namespace System.Collections {
                                list.Capacity = value;
                        }
                }
-                       
-#endif
                
                // Protected Instance Properties
                protected ArrayList InnerList {