[Mono-list] Build broken in System.dll
Christophe VG
mono@baselabs.org
15 Apr 2002 09:28:49 +0200
Line 120 should say : public override bool Equals (Object obj)
^^^^
and public override string GetHashCode ()
^^^^^^ ^
or in diff format :
$ cvs diff -u class/System/System.Net/IPEndPoint.cs
Index: class/System/System.Net/IPEndPoint.cs
===================================================================
RCS file: /mono/mcs/class/System/System.Net/IPEndPoint.cs,v
retrieving revision 1.4
diff -u -r1.4 IPEndPoint.cs
--- class/System/System.Net/IPEndPoint.cs 15 Apr 2002 01:03:28 -0000 1.4
+++ class/System/System.Net/IPEndPoint.cs 15 Apr 2002 07:29:51 -0000
@@ -117,7 +117,7 @@
return(address.ToString() + ":" + port);
}
- public override string Equals (Object obj)
+ public override bool Equals (Object obj)
{
if (obj is System.Net.IPEndPoint) {
return ( ((IPEndPoint) obj).port == port &&
@@ -127,7 +127,7 @@
return false;
}
- public override string GetHashcode ()
+ public override int GetHashCode ()
{
return address.GetHashCode () + port;
}
Christophe
--
Supporting the Mono project, and helping you...
http://mono.baselabs.org http://mono.baselabs.org/CSAM
*** ***
"First steps" building guides, CSAM the C Sharp Archived Modules
daily Mono RPMS, C# tutorial,...