X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Drawing%2FSystem.Drawing%2FPointF.cs;h=1a64613aa24992e4a43ab2d974b57a8c6a68016a;hb=d133efa6c5d1d965cab76d01943af965e5247307;hp=e829c6a7905c308d0b5fdb533a9436f12acdef18;hpb=53e266903ec6b2d822cf5b0c566f6374df5307a4;p=mono.git diff --git a/mcs/class/System.Drawing/System.Drawing/PointF.cs b/mcs/class/System.Drawing/System.Drawing/PointF.cs index e829c6a7905..1a64613aa24 100644 --- a/mcs/class/System.Drawing/System.Drawing/PointF.cs +++ b/mcs/class/System.Drawing/System.Drawing/PointF.cs @@ -68,12 +68,10 @@ namespace System.Drawing { return new PointF (pt.X + sz.Width, pt.Y + sz.Height); } -#if NET_2_0 public static PointF operator + (PointF pt, SizeF sz) { return new PointF (pt.X + sz.Width, pt.Y + sz.Height); } -#endif /// /// Equality Operator @@ -85,9 +83,9 @@ namespace System.Drawing /// of the two points. /// - public static bool operator == (PointF pt_a, PointF pt_b) + public static bool operator == (PointF left, PointF right) { - return ((pt_a.X == pt_b.X) && (pt_a.Y == pt_b.Y)); + return ((left.X == right.X) && (left.Y == right.Y)); } /// @@ -100,9 +98,9 @@ namespace System.Drawing /// of the two points. /// - public static bool operator != (PointF pt_a, PointF pt_b) + public static bool operator != (PointF left, PointF right) { - return ((pt_a.X != pt_b.X) || (pt_a.Y != pt_b.Y)); + return ((left.X != right.X) || (left.Y != right.Y)); } /// @@ -118,12 +116,10 @@ namespace System.Drawing { return new PointF (pt.X - sz.Width, pt.Y - sz.Height); } -#if NET_2_0 public static PointF operator - (PointF pt, SizeF sz) { return new PointF (pt.X - sz.Width, pt.Y - sz.Height); } -#endif // ----------------------- // Public Constructor @@ -204,12 +200,12 @@ namespace System.Drawing /// Checks equivalence of this PointF and another object. /// - public override bool Equals (object o) + public override bool Equals (object obj) { - if (!(o is PointF)) + if (!(obj is PointF)) return false; - return (this == (PointF) o); + return (this == (PointF) obj); } /// @@ -239,7 +235,6 @@ namespace System.Drawing y.ToString (CultureInfo.CurrentCulture)); } -#if NET_2_0 public static PointF Add (PointF pt, Size sz) { return new PointF (pt.X + sz.Width, pt.Y + sz.Height); @@ -259,7 +254,6 @@ namespace System.Drawing { return new PointF (pt.X - sz.Width, pt.Y - sz.Height); } -#endif } }