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

Commit 96d3488

Browse files
committed
Added Position.Min + Max
1 parent 29abb50 commit 96d3488

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,21 @@ public int Value
106106
return a.Value < b.Value;
107107
}
108108

109-
public override string ToString()
109+
public static Position Min(Position a, Position b)
110+
{
111+
if (a < b)
112+
return a;
113+
return b;
114+
}
115+
116+
public static Position Max(Position a, Position b)
117+
{
118+
if (a > b)
119+
return a;
120+
return b;
121+
}
122+
123+
public override string ToString()
110124
{
111125
return "Postion: " + pos;
112126
}

0 commit comments

Comments
 (0)