diff --git a/Core/src/Umbrella.Utilities/Guard.cs b/Core/src/Umbrella.Utilities/Guard.cs index 57be41910..e3f46cf07 100644 --- a/Core/src/Umbrella.Utilities/Guard.cs +++ b/Core/src/Umbrella.Utilities/Guard.cs @@ -156,7 +156,7 @@ public static void ArgumentLengthInRange(string argumentValue, string argumentNa /// The value must be less than or equal to {max} /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ArgumentInRange(T? argumentValue, string argumentName, T? min = null, T? max = null, bool allowNull = true) + public static void ArgumentInRange(T? argumentValue, string argumentName, T? min = null, T? max = null, bool allowNull = false) where T : struct, IComparable { if (!argumentValue.HasValue && !allowNull)