1
0
mirror of synced 2024-12-19 19:06:02 +01:00
OpenTaiko/FDK19/コード/00.共通/ExtensionMethods/Int32Extensions.cs
2021-09-21 00:16:38 +02:00

13 lines
247 B
C#

using System;
namespace FDK.ExtensionMethods
{
public static class Int32Extensions
{
public static int Clamp(this int value, int min, int max)
{
return Math.Min(Math.Max(value, min), max);
}
}
}