dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Array.cs,1.11,1.12


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Array.cs,1.11,1.12
Date: Tue, 19 Nov 2002 15:38:28 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv24608/runtime/System

Modified Files:
        Array.cs 
Log Message:
minor fix to array and uncomment the FIXMes in System/Net/HttpWebRe*


Index: Array.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Array.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** Array.cs    13 Nov 2002 19:20:39 -0000      1.11
--- Array.cs    19 Nov 2002 20:38:25 -0000      1.12
***************
*** 257,272 ****
  
                // Copy the array contents the hard way.
-               if(!Convert.CanConvert(arrayType1, arrayType2))
-               {
-                       throw new ArrayTypeMismatchException
-                               (_("Exception_ArrayTypeMismatch"));
-               }
                int index;
                for(index = 0; index < length; ++index)
                {
!                       destinationArray.SetRelative
!                               (Convert.ConvertObject
!                                       (sourceArray.GetRelative(sourceIndex + 
index), arrayType2),
!                                destinationIndex + index);
                }
        }
--- 257,275 ----
  
                // Copy the array contents the hard way.
                int index;
                for(index = 0; index < length; ++index)
                {
!                       try
!                       {
!                               destinationArray.SetRelative(
!                                       Convert.ConvertObject(
!                                               
sourceArray.GetRelative(sourceIndex + index), 
!                                               arrayType2), destinationIndex + 
index);
!                       }
!                       catch(Exception)
!                       {
!                               throw new ArrayTypeMismatchException // error
!                                                       
(_("Exception_ArrayTypeMismatch")); 
!                       }
                }
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]