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

Commit 0487bca

Browse files
committed
Added <, > operators for Position
1 parent 5ee9c68 commit 0487bca

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ public int Value
9696
return !(a == b);
9797
}
9898

99+
public static bool operator >(Position a, Position b)
100+
{
101+
return a.Value > b.Value;
102+
}
103+
104+
public static bool operator <(Position a, Position b)
105+
{
106+
return a.Value < b.Value;
107+
}
108+
99109
public override string ToString()
100110
{
101111
return "Postion: " + pos;
@@ -238,7 +248,7 @@ public void Dispose()
238248
}
239249

240250

241-
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
242-
/* --Autogenerated -- end of section automatically generated from Scintilla.iface */
251+
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
252+
/* --Autogenerated -- end of section automatically generated from Scintilla.iface */
243253

244254
}

0 commit comments

Comments
 (0)