[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System String.cs,1.30,1.31
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System String.cs,1.30,1.31 |
Date: |
Fri, 28 Mar 2003 01:54:01 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv26561/runtime/System
Modified Files:
String.cs
Log Message:
Minor compatibility fixes in System.String.
Index: String.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/String.cs,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** String.cs 11 Mar 2003 08:21:12 -0000 1.30
--- String.cs 28 Mar 2003 06:53:59 -0000 1.31
***************
*** 503,506 ****
--- 503,510 ----
int destinationIndex, int count)
{
+ if(destination == null)
+ {
+ throw new
ArgumentNullException("destination");
+ }
if(sourceIndex < 0 || sourceIndex > length)
{
***************
*** 573,586 ****
#endif // !ECMA_COMPAT
! // Format a single-argument string.
public static String Format(String format, Object arg0)
{
- // This check is peculiar to this method. Ask
ECMA. Really.
- if (arg0 == null)
- {
- throw new ArgumentNullException("arg0");
- }
-
- // Now that the paperwork's done, hand the
request along.
return Format((IFormatProvider)null, format,
arg0);
}
--- 577,586 ----
#endif // !ECMA_COMPAT
! // Format a single-argument string. According to the ECMA spec
! // and the MS documentation, this should throw an exception
! // if "arg0" is null. However, this is inconsistent with the
! // behaviour of all other implementations, which don't throw null.
public static String Format(String format, Object arg0)
{
return Format((IFormatProvider)null, format,
arg0);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System String.cs,1.30,1.31,
Rhys Weatherley <address@hidden> <=