[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes PgBox.cs,1.5,1.6 Pg
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes
In directory sc8-pr-cvs1:/tmp/cvs-serv22272
Modified Files:
PgBox.cs PgCircle.cs PgLine.cs PgLSeg.cs PgPath.cs PgPoint.cs
PgPolygon.cs PgTimeSpan.cs
Log Message:
2003-11-12 Carlos Guzmán Álvarez <car...@te...>
* source/PgTypes/PgBox.cs:
* source/PgTypes/PgCircle.cs:
* source/PgTypes/PgLine.cs:
* source/PgTypes/PgLSeg.cs:
* source/PgTypes/PgPath.cs:
* source/PgTypes/PgPoint.cs:
* source/PgTypes/PgPolygon.cs:
- Added new constructors ( not to all ).
- Added Serializable attribute.
* source/PgTypes/PgBox.cs:
- Added Serializable attribute.
Index: PgBox.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgBox.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PgBox.cs 27 Oct 2003 18:46:29 -0000 1.5
--- PgBox.cs 12 Nov 2003 19:53:11 -0000 1.6
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgBox
{
***************
*** 50,53 ****
--- 51,60 ----
this.lowerLeft = lowerLeft;
this.upperRight = upperRight;
+ }
+
+ public PgBox(double x1, double y1, double x2, double y2)
+ {
+ this.lowerLeft = new PgPoint(x1, y1);
+ this.upperRight = new PgPoint(x2, y2);
}
Index: PgCircle.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgCircle.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgCircle.cs 26 Oct 2003 14:56:59 -0000 1.3
--- PgCircle.cs 12 Nov 2003 19:53:11 -0000 1.4
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgCircle
{
***************
*** 50,53 ****
--- 51,60 ----
this.center = center;
this.radius = radius;
+ }
+
+ public PgCircle(double x, double y, double radius)
+ {
+ this.center = new PgPoint(x, y);
+ this.radius = radius;
}
Index: PgLine.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLine.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgLine.cs 26 Oct 2003 14:56:59 -0000 1.3
--- PgLine.cs 12 Nov 2003 19:53:11 -0000 1.4
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgLine
{
***************
*** 50,53 ****
--- 51,60 ----
this.startPoint = startPoint;
this.endPoint = endPoint;
+ }
+
+ public PgLine(double x1, double y1, double x2, double y2)
+ {
+ this.startPoint = new PgPoint(x1, y1);
+ this.endPoint = new PgPoint(x2, y2);
}
Index: PgLSeg.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLSeg.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PgLSeg.cs 26 Oct 2003 14:56:59 -0000 1.4
--- PgLSeg.cs 12 Nov 2003 19:53:11 -0000 1.5
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgLSeg
{
***************
*** 50,53 ****
--- 51,60 ----
this.startPoint = startPoint;
this.endPoint = endPoint;
+ }
+
+ public PgLSeg(double x1, double y1, double x2, double y2)
+ {
+ this.startPoint = new PgPoint(x1, y1);
+ this.endPoint = new PgPoint(x2, y2);
}
Index: PgPath.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPath.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgPath.cs 26 Oct 2003 14:56:59 -0000 1.3
--- PgPath.cs 12 Nov 2003 19:53:11 -0000 1.4
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgPath
{
Index: PgPoint.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPoint.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgPoint.cs 26 Oct 2003 14:56:59 -0000 1.3
--- PgPoint.cs 12 Nov 2003 19:53:11 -0000 1.4
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgPoint
{
Index: PgPolygon.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPolygon.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PgPolygon.cs 26 Oct 2003 14:56:59 -0000 1.4
--- PgPolygon.cs 12 Nov 2003 19:53:11 -0000 1.5
***************
*** 20,24 ****
namespace PostgreSql.Data.PgTypes
! {
public struct PgPolygon
{
--- 20,25 ----
namespace PostgreSql.Data.PgTypes
! {
! [Serializable]
public struct PgPolygon
{
Index: PgTimeSpan.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgTimeSpan.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PgTimeSpan.cs 26 Oct 2003 14:57:31 -0000 1.1
--- PgTimeSpan.cs 12 Nov 2003 19:53:11 -0000 1.2
***************
*** 21,24 ****
--- 21,25 ----
namespace PostgreSql.Data.PgTypes
{
+ [Serializable]
public struct PgTimeSpan : IComparable
{
|