Author: zoltan
Date: 2007-11-21 14:13:00 -0500 (Wed, 21 Nov 2007)
New Revision: 90101

Modified:
   trunk/mcs/class/corlib/System/Array.cs
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Environment.cs
Log:
2007-11-21  Zoltan Varga  <[EMAIL PROTECTED]>

        * Array.cs: Make the InternalArray_... methods internal.

        * Environment.cs: Bump corlib version.


Modified: trunk/mcs/class/corlib/System/Array.cs
===================================================================
--- trunk/mcs/class/corlib/System/Array.cs      2007-11-21 18:40:14 UTC (rev 
90100)
+++ trunk/mcs/class/corlib/System/Array.cs      2007-11-21 19:13:00 UTC (rev 
90101)
@@ -56,34 +56,32 @@
                }
 
 #if NET_2_0
-               // FIXME: they should not be exposed, but there are some
-               // dependent code in the runtime.
-               protected int InternalArray__ICollection_get_Count<T> ()
+               internal int InternalArray__ICollection_get_Count<T> ()
                {
                        return Length;
                }
 
-               protected IEnumerator<T> 
InternalArray__IEnumerable_GetEnumerator<T> ()
+               internal IEnumerator<T> 
InternalArray__IEnumerable_GetEnumerator<T> ()
                {
                        return new InternalEnumerator<T> (this);
                }
 
-               protected void InternalArray__ICollection_Clear<T> ()
+               internal void InternalArray__ICollection_Clear<T> ()
                {
                        throw new NotSupportedException ("Collection is 
read-only");
                }
 
-               protected void InternalArray__ICollection_Add<T> (T item)
+               internal void InternalArray__ICollection_Add<T> (T item)
                {
                        throw new NotSupportedException ("Collection is 
read-only");
                }
 
-               protected bool InternalArray__ICollection_Remove<T> (T item)
+               internal bool InternalArray__ICollection_Remove<T> (T item)
                {
                        throw new NotSupportedException ("Collection is 
read-only");
                }
 
-               protected bool InternalArray__ICollection_Contains<T> (T item)
+               internal bool InternalArray__ICollection_Contains<T> (T item)
                {
                        if (this.Rank > 1)
                                throw new RankException (Locale.GetText ("Only 
single dimension arrays are supported."));
@@ -106,7 +104,7 @@
                        return false;
                }
 
-               protected void InternalArray__ICollection_CopyTo<T> (T[] array, 
int index)
+               internal void InternalArray__ICollection_CopyTo<T> (T[] array, 
int index)
                {
                        if (array == null)
                                throw new ArgumentNullException ("array");
@@ -128,17 +126,17 @@
                        Copy (this, this.GetLowerBound (0), array, index, 
this.GetLength (0));
                }
 
-               protected void InternalArray__Insert<T> (int index, T item)
+               internal void InternalArray__Insert<T> (int index, T item)
                {
                        throw new NotSupportedException ("Collection is 
read-only");
                }
 
-               protected void InternalArray__RemoveAt<T> (int index)
+               internal void InternalArray__RemoveAt<T> (int index)
                {
                        throw new NotSupportedException ("Collection is 
read-only");
                }
 
-               protected int InternalArray__IndexOf<T> (T item)
+               internal int InternalArray__IndexOf<T> (T item)
                {
                        if (this.Rank > 1)
                                throw new RankException (Locale.GetText ("Only 
single dimension arrays are supported."));
@@ -171,7 +169,7 @@
                        return retVal;
                }
 
-               protected T InternalArray__get_Item<T> (int index)
+               internal T InternalArray__get_Item<T> (int index)
                {
                        if (unchecked ((uint) index) >= unchecked ((uint) 
Length))
                                throw new ArgumentOutOfRangeException ("index");
@@ -181,7 +179,7 @@
                        return value;
                }
 
-               protected void InternalArray__set_Item<T> (int index, T item)
+               internal void InternalArray__set_Item<T> (int index, T item)
                {
                        if (unchecked ((uint) index) >= unchecked ((uint) 
Length))
                                throw new ArgumentOutOfRangeException ("index");

Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 18:40:14 UTC (rev 
90100)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 19:13:00 UTC (rev 
90101)
@@ -1,3 +1,9 @@
+2007-11-21  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Array.cs: Make the InternalArray_... methods internal.
+
+       * Environment.cs: Bump corlib version.
+
 2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * AppDomain.cs : filled 2.0 API (extra ones are from 2.0 SP1).

Modified: trunk/mcs/class/corlib/System/Environment.cs
===================================================================
--- trunk/mcs/class/corlib/System/Environment.cs        2007-11-21 18:40:14 UTC 
(rev 90100)
+++ trunk/mcs/class/corlib/System/Environment.cs        2007-11-21 19:13:00 UTC 
(rev 90101)
@@ -63,7 +63,7 @@
                 * Changes which are already detected at runtime, like the 
addition
                 * of icalls, do not require an increment.
                 */
-               private const int mono_corlib_version = 61;
+               private const int mono_corlib_version = 62;
                
                public enum SpecialFolder
                {       // TODO: Determine if these windoze style folder 
identifiers 

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

Reply via email to