Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 29abb50

Browse files
committed
== operator
1 parent 0487bca commit 29abb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Visual Studio Project Template C#/PluginInfrastructure/GatewayDomain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public int Value
8888

8989
public static bool operator ==(Position a, Position b)
9090
{
91-
return a.pos == b.pos;
91+
return ReferenceEquals(a, b) || a.pos == b.pos;
9292
}
9393

9494
public static bool operator !=(Position a, Position b)

0 commit comments

Comments
 (0)