1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

More commutable attributes

This commit is contained in:
Brian Fiete 2020-12-04 14:10:42 -08:00
parent 3f6eae6bfc
commit 5096e65fc7
3 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@ namespace IDE
return (int)mKeyCode | (int)mKeyFlags << 16; return (int)mKeyCode | (int)mKeyFlags << 16;
} }
[Commutable]
public static bool operator==(KeyState val1, KeyState val2) public static bool operator==(KeyState val1, KeyState val2)
{ {
return (val1.mKeyCode == val2.mKeyCode) && return (val1.mKeyCode == val2.mKeyCode) &&

View file

@ -231,6 +231,7 @@ namespace IDE.ui
return this == other; return this == other;
} }
[Commutable]
public static bool operator==(PendingEntry val1, PendingEntry val2) public static bool operator==(PendingEntry val1, PendingEntry val2)
{ {
if (((Object)val1 == null) || ((Object)val2 == null)) if (((Object)val1 == null) || ((Object)val2 == null))

View file

@ -72,6 +72,7 @@ namespace IDE.util
} }
} }
[Commutable]
public static bool operator==(SourceHash lhs, SourceHash rhs) public static bool operator==(SourceHash lhs, SourceHash rhs)
{ {
switch (lhs) switch (lhs)