[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes PgBox.cs,1.10,1.11
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25757 Modified Files: PgBox.cs PgCircle.cs PgLine.cs PgLSeg.cs PgPath.cs PgPoint.cs PgPolygon.cs PgTimeSpan.cs Log Message: Actualizada la implementación de los métodos GetHashCode y Equals Index: PgTimeSpan.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgTimeSpan.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PgTimeSpan.cs 22 Jul 2004 10:59:30 -0000 1.7 --- PgTimeSpan.cs 17 Nov 2004 18:59:03 -0000 1.8 *************** *** 224,228 **** public override bool Equals(object obj) { ! if (obj is PgTimeSpan) { return ((PgTimeSpan)obj) == this; --- 224,228 ---- public override bool Equals(object obj) { ! if (obj != null && obj is PgTimeSpan) { return ((PgTimeSpan)obj) == this; Index: PgLine.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLine.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgLine.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgLine.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 105,114 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgLine) { return ((PgLine)obj) == this; --- 105,114 ---- public override int GetHashCode() { ! return this.startPoint.GetHashCode() ^ this.endPoint.GetHashCode(); } public override bool Equals(object obj) { ! if (obj != null && obj is PgLine) { return ((PgLine)obj) == this; Index: PgPoint.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPoint.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgPoint.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgPoint.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 95,104 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPoint) { return ((PgPoint)obj) == this; --- 95,104 ---- public override int GetHashCode() { ! return (this.x.GetHashCode() ^ this.y.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPoint) { return ((PgPoint)obj) == this; Index: PgLSeg.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLSeg.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PgLSeg.cs 9 Feb 2004 14:21:04 -0000 1.9 --- PgLSeg.cs 17 Nov 2004 18:59:03 -0000 1.10 *************** *** 105,114 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgLSeg) { return ((PgLSeg)obj) == this; --- 105,114 ---- public override int GetHashCode() { ! return (this.startPoint.GetHashCode() ^ this.endPoint.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgLSeg) { return ((PgLSeg)obj) == this; Index: PgCircle.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgCircle.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgCircle.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgCircle.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 102,111 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgCircle) { return ((PgCircle)obj) == this; --- 102,111 ---- public override int GetHashCode() { ! return this.center.GetHashCode() ^ this.radius.GetHashCode(); } public override bool Equals(object obj) { ! if (obj != null && obj is PgCircle) { return ((PgCircle)obj) == this; Index: PgPath.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPath.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgPath.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgPath.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 123,132 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPath) { return ((PgPath)obj) == this; --- 123,132 ---- public override int GetHashCode() { ! return (this.points.GetHashCode() ^ this.isClosedPath.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPath) { return ((PgPath)obj) == this; Index: PgPolygon.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPolygon.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PgPolygon.cs 9 Feb 2004 14:21:04 -0000 1.9 --- PgPolygon.cs 17 Nov 2004 18:59:03 -0000 1.10 *************** *** 116,125 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPolygon) { return ((PgPolygon)obj) == this; --- 116,125 ---- public override int GetHashCode() { ! return (this.points.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPolygon) { return ((PgPolygon)obj) == this; Index: PgBox.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgBox.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PgBox.cs 9 Feb 2004 14:21:04 -0000 1.10 --- PgBox.cs 17 Nov 2004 18:59:03 -0000 1.11 *************** *** 105,109 **** public override int GetHashCode() { ! return base.GetHashCode(); } --- 105,109 ---- public override int GetHashCode() { ! return (this.UpperRight.GetHashCode() ^ this.LowerLeft.GetHashCode()); } |