1
0
mirror of synced 2024-12-20 11:25:55 +01:00
OpenTaiko/FDK19/コード/00.共通/ExtensionMethods/Int32Extensions.cs

13 lines
247 B
C#
Raw Normal View History

2021-09-21 00:16:38 +02:00
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);
}
}
}