aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Size.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
commite8b13fbea6cab4f01af769a1246c49c588fa2f3e (patch)
tree649f51c9c995c5f0c106ce3c60bc99fd364b1368 /src/Size.cs
parent1753010a7b08f29f425356171f78817dc8c6e7f4 (diff)
CompilerServices for EventHandler statements in XML attributes
Improve code formatting debug
Diffstat (limited to 'src/Size.cs')
-rwxr-xr-x[-rw-r--r--]src/Size.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Size.cs b/src/Size.cs
index fd2dfa61..72f8fff1 100644..100755
--- a/src/Size.cs
+++ b/src/Size.cs
@@ -109,7 +109,11 @@ namespace go
return false;
else
return true;
- }
+ }
+ public static Size operator +(Size s1, Size s2)
+ {
+ return new Size(s1.Width + s2.Width, s1.Height + s2.Height);
+ }
public static Size operator +(Size s, int i)
{
return new Size(s.Width + i, s.Height + i);