[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Version.cs,1.8,1.9
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Version.cs,1.8,1.9 |
Date: |
Fri, 21 Feb 2003 03:36:50 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv11256/runtime/System
Modified Files:
Version.cs
Log Message:
Patch 1127 -- Version == & !=
Index: Version.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Version.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Version.cs 28 Nov 2002 04:54:29 -0000 1.8
--- Version.cs 21 Feb 2003 08:36:47 -0000 1.9
***************
*** 218,222 ****
{
Version vers = (version as Version);
! if(vers != null)
{
if(major > vers.major)
--- 218,222 ----
{
Version vers = (version as Version);
! if((Object)vers != null) // optimise to a
brfalse
{
if(major > vers.major)
***************
*** 268,272 ****
{
Version version = (obj as Version);
! if(version != null)
{
return (major == version.major &&
--- 268,272 ----
{
Version version = (obj as Version);
! if((Object)version != null)
{
return (major == version.major &&
***************
*** 335,343 ****
public static bool operator==(Version v1, Version v2)
{
! return v1.Equals(v2);
}
public static bool operator!=(Version v1, Version v2)
{
! return !v1.Equals(v2);
}
public static bool operator<(Version v1, Version v2)
--- 335,346 ----
public static bool operator==(Version v1, Version v2)
{
! if ((Object)v1 == null)
! return ((Object)v2 == null);
! else
! return v1.Equals(v2);
}
public static bool operator!=(Version v1, Version v2)
{
! return !(v1 == v2);
}
public static bool operator<(Version v1, Version v2)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Version.cs,1.8,1.9,
Gopal.V <address@hidden> <=