Files
2026-06-22 16:18:34 +02:00

13 lines
299 B
C#

namespace GameKit.Dependencies.Utilities
{
public static class Booleans
{
/// <summary>
/// Converts a boolean to an integer, 1 for true 0 for false.
/// </summary>
public static int ToInt(this bool b)
{
return b ? 1 : 0;
}
}
}