Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hanna <jon@hackcraft.net>2017-01-24 23:43:09 +0300
committerKarel Zikmund <karelz@users.noreply.github.com>2017-01-24 23:43:09 +0300
commitc34091dc4fefe204360406809e0a926712b89753 (patch)
tree307c2abe0ce3ae160499af1f131d8fa0c760ffee /src/System.Drawing.Primitives/ref
parent02ba4ab1b70d274309ee8d67572a258b82e416cc (diff)
Implement IEquatable interface on System.Drawing structs. (#15435)
Fixes #5255
Diffstat (limited to 'src/System.Drawing.Primitives/ref')
-rw-r--r--src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
index aafd0d6a2a..abcdab0f2d 100644
--- a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
+++ b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
@@ -8,7 +8,7 @@
namespace System.Drawing
{
[System.SerializableAttribute]
- public partial struct Color
+ public partial struct Color : System.IEquatable<System.Drawing.Color>
{
public static readonly System.Drawing.Color Empty;
public byte A { get { throw null; } }
@@ -161,6 +161,7 @@ namespace System.Drawing
public static System.Drawing.Color WhiteSmoke { get { throw null; } }
public static System.Drawing.Color Yellow { get { throw null; } }
public static System.Drawing.Color YellowGreen { get { throw null; } }
+ public bool Equals(System.Drawing.Color other) { throw null; }
public override bool Equals(object obj) { throw null; }
public static System.Drawing.Color FromArgb(int argb) { throw null; }
public static System.Drawing.Color FromArgb(int alpha, System.Drawing.Color baseColor) { throw null; }
@@ -355,7 +356,7 @@ namespace System.Drawing
Yellow = 166,
YellowGreen = 167,
}
- public partial struct Point
+ public partial struct Point : System.IEquatable<System.Drawing.Point>
{
public static readonly System.Drawing.Point Empty;
public Point(System.Drawing.Size sz) { throw null; }
@@ -366,6 +367,7 @@ namespace System.Drawing
public int Y { get { throw null; } set { } }
public static System.Drawing.Point Add(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.Point Ceiling(System.Drawing.PointF value) { throw null; }
+ public bool Equals(System.Drawing.Point other) { throw null; }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
public void Offset(System.Drawing.Point p) { }
@@ -381,7 +383,7 @@ namespace System.Drawing
public override string ToString() { throw null; }
public static System.Drawing.Point Truncate(System.Drawing.PointF value) { throw null; }
}
- public partial struct PointF
+ public partial struct PointF : System.IEquatable<System.Drawing.PointF>
{
public static readonly System.Drawing.PointF Empty;
public PointF(float x, float y) { throw null; }
@@ -390,6 +392,7 @@ namespace System.Drawing
public float Y { get { throw null; } set { } }
public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
+ public bool Equals(System.Drawing.PointF other) { throw null; }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
public static System.Drawing.PointF operator +(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
@@ -402,7 +405,7 @@ namespace System.Drawing
public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
public override string ToString() { throw null; }
}
- public partial struct Rectangle
+ public partial struct Rectangle : System.IEquatable<System.Drawing.Rectangle>
{
public static readonly System.Drawing.Rectangle Empty;
public Rectangle(System.Drawing.Point location, System.Drawing.Size size) { throw null; }
@@ -422,6 +425,7 @@ namespace System.Drawing
public bool Contains(System.Drawing.Point pt) { throw null; }
public bool Contains(System.Drawing.Rectangle rect) { throw null; }
public bool Contains(int x, int y) { throw null; }
+ public bool Equals(System.Drawing.Rectangle other) { throw null; }
public override bool Equals(object obj) { throw null; }
public static System.Drawing.Rectangle FromLTRB(int left, int top, int right, int bottom) { throw null; }
public override int GetHashCode() { throw null; }
@@ -440,7 +444,7 @@ namespace System.Drawing
public static System.Drawing.Rectangle Truncate(System.Drawing.RectangleF value) { throw null; }
public static System.Drawing.Rectangle Union(System.Drawing.Rectangle a, System.Drawing.Rectangle b) { throw null; }
}
- public partial struct RectangleF
+ public partial struct RectangleF : System.IEquatable<System.Drawing.RectangleF>
{
public static readonly System.Drawing.RectangleF Empty;
public RectangleF(System.Drawing.PointF location, System.Drawing.SizeF size) { throw null; }
@@ -459,6 +463,7 @@ namespace System.Drawing
public bool Contains(System.Drawing.PointF pt) { throw null; }
public bool Contains(System.Drawing.RectangleF rect) { throw null; }
public bool Contains(float x, float y) { throw null; }
+ public bool Equals(System.Drawing.RectangleF other) { throw null; }
public override bool Equals(object obj) { throw null; }
public static System.Drawing.RectangleF FromLTRB(float left, float top, float right, float bottom) { throw null; }
public override int GetHashCode() { throw null; }
@@ -476,7 +481,7 @@ namespace System.Drawing
public override string ToString() { throw null; }
public static System.Drawing.RectangleF Union(System.Drawing.RectangleF a, System.Drawing.RectangleF b) { throw null; }
}
- public partial struct Size
+ public partial struct Size : System.IEquatable<System.Drawing.Size>
{
public static readonly System.Drawing.Size Empty;
public Size(System.Drawing.Point pt) { throw null; }
@@ -486,6 +491,7 @@ namespace System.Drawing
public int Width { get { throw null; } set { } }
public static System.Drawing.Size Add(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
public static System.Drawing.Size Ceiling(System.Drawing.SizeF value) { throw null; }
+ public bool Equals(System.Drawing.Size other) { throw null; }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
public static System.Drawing.Size operator +(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
@@ -499,7 +505,7 @@ namespace System.Drawing
public override string ToString() { throw null; }
public static System.Drawing.Size Truncate(System.Drawing.SizeF value) { throw null; }
}
- public partial struct SizeF
+ public partial struct SizeF : System.IEquatable<System.Drawing.SizeF>
{
public static readonly System.Drawing.SizeF Empty;
public SizeF(System.Drawing.PointF pt) { throw null; }
@@ -509,6 +515,7 @@ namespace System.Drawing
public bool IsEmpty { get { throw null; } }
public float Width { get { throw null; } set { } }
public static System.Drawing.SizeF Add(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public bool Equals(System.Drawing.SizeF other) { throw null; }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
public static System.Drawing.SizeF operator +(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }