[Top][All Lists]
[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"));
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Array.cs,1.11,1.12,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: cscctest/c/expr assign1.3il,1.1,1.2 assign1.il,1.1,1.2 binary1.3il,1.1,1.2 binary1.il,1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.454,1.455
- Previous by thread:
[Dotgnu-pnet-commits] CVS: cscctest/c/expr assign1.3il,1.1,1.2 assign1.il,1.1,1.2 binary1.3il,1.1,1.2 binary1.il,1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.454,1.455
- Index(es):