[Mono-list] UnixEndPoint issues

Jonathan Pryor jonpryor at vt.edu
Mon Mar 6 07:17:21 EST 2006


On Mon, 2006-03-06 at 12:33 +0100, Philipp Baer wrote:
> Index: UnixEndPoint.cs
> ===================================================================
> --- UnixEndPoint.cs	(revision 57605)
> +++ UnixEndPoint.cs	(working copy)
> @@ -93,6 +95,10 @@
>  		public override string ToString() {
>  			return(filename);
>  		}
> +
> +		public override int GetHashCode() {
> +			return filename.GetHashCode();
> +		}

If you override GetHashCode() you need to override Equals() as well.

 - Jon




More information about the Mono-list mailing list