Author: atsushi
Date: 2007-05-23 09:49:28 -0400 (Wed, 23 May 2007)
New Revision: 77834

Modified:
   trunk/mcs/class/corlib/System/Array.cs
   trunk/mcs/class/corlib/System/ChangeLog
Log:
2007-05-23  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * Array.cs : reverting Array.cs fixes since the runtime depends on
          those method attributes.



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

Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-05-23 13:46:29 UTC (rev 
77833)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-05-23 13:49:28 UTC (rev 
77834)
@@ -1,5 +1,10 @@
 2007-05-23  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * Array.cs : reverting Array.cs fixes since the runtime depends on
+         those method attributes.
+
+2007-05-23  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * Int16.cs UInt64.cs UIntPtr.cs Double.cs CrossAppDomainDelegate.cs
          ResolveEventHandler.cs IntPtr.cs UnhandledExceptionEventHandler.cs
          Void.cs AssemblyLoadEventHandler.cs SByte.cs UInt16.cs DateTime.cs

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

Reply via email to