Author: lluis
Date: 2005-04-27 06:09:32 -0400 (Wed, 27 Apr 2005)
New Revision: 43647
Modified:
trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
trunk/mcs/class/System.Drawing/System.Drawing/PointF.cs
Log:
2005-04-27 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* PointF.cs: Make serialization compatible with MS.
Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog 2005-04-27
09:18:50 UTC (rev 43646)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog 2005-04-27
10:09:32 UTC (rev 43647)
@@ -1,3 +1,7 @@
+2005-04-27 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * PointF.cs: Make serialization compatible with MS.
+
2005-04-10 Geoff Norton <[EMAIL PROTECTED]>
* Graphics.cs:
Modified: trunk/mcs/class/System.Drawing/System.Drawing/PointF.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/PointF.cs 2005-04-27
09:18:50 UTC (rev 43646)
+++ trunk/mcs/class/System.Drawing/System.Drawing/PointF.cs 2005-04-27
10:09:32 UTC (rev 43647)
@@ -42,7 +42,7 @@
public struct PointF
{
// Private x and y coordinate fields.
- private float cx, cy;
+ private float x, y;
// -----------------------
// Public Shared Members
@@ -130,8 +130,8 @@
public PointF (float x, float y)
{
- cx = x;
- cy = y;
+ this.x = x;
+ this.y = y;
}
// -----------------------
@@ -149,7 +149,7 @@
[Browsable (false)]
public bool IsEmpty {
get {
- return ((cx == 0.0) && (cy == 0.0));
+ return ((x == 0.0) && (y == 0.0));
}
}
@@ -163,10 +163,10 @@
public float X {
get {
- return cx;
+ return x;
}
set {
- cx = value;
+ x = value;
}
}
@@ -180,10 +180,10 @@
public float Y {
get {
- return cy;
+ return y;
}
set {
- cy = value;
+ y = value;
}
}
@@ -213,7 +213,7 @@
public override int GetHashCode ()
{
- return (int) cx ^ (int) cy;
+ return (int) x ^ (int) y;
}
/// <summary>
@@ -226,7 +226,7 @@
public override string ToString ()
{
- return String.Format ("{{X={0}, Y={1}}}", cx, cy);
+ return String.Format ("{{X={0}, Y={1}}}", x, y);
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches