See the guards API below :
public static int Negative([JetBrainsNotNull] this IGuardClause guardClause,
int input,
[JetBrainsNotNull][JetBrainsInvokerParameterName][CallerArgumentExpression("input")] string? parameterName = null,
string? message = null){
......
}
If I want to pass custom message I need to pass parameterName as well, which breaks the CallerArgumentExpression functionality.
See the guards API below :
If I want to pass custom message I need to pass
parameterNameas well, which breaks theCallerArgumentExpressionfunctionality.