namespace Nodebox.Extensions;
public static class ArgumentExceptionExtensions {
extension(ArgumentException argumentException) {
public static void ThrowIf(bool value, string message = null, string paramName = null, Exception innerException = null) {
if (value) {
throw new ArgumentException(message, paramName, innerException);
}
}
}
}