From 5a3478d8146fa9ecfedf59125cff49c22a870d67 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 2 Dec 2024 15:06:14 +0000 Subject: [PATCH] ShopInfoFromProductList --- .../BotSharp.Abstraction/Utilities/MathExt.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs diff --git a/src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs b/src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs new file mode 100644 index 00000000..4ea18179 --- /dev/null +++ b/src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs @@ -0,0 +1,14 @@ +namespace BotSharp.Abstraction.Utilities; + +public static class MathExt +{ + public static int Max(int a, int b, int c) + { + return Math.Max(Math.Max(a, b), c); + } + + public static long Max(long a, long b, long c) + { + return Math.Max(Math.Max(a, b), c); + } +}