@@ -446,7 +446,7 @@ public static void Argument([DoesNotReturnIf(false)] bool condition, string? par
446446 NotNull ( resourceManager , nameof ( resourceManager ) ) ;
447447 if ( ! condition )
448448 {
449- throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) , arg1 ) , parameterName ) ;
449+ throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) ! , arg1 ) , parameterName ) ;
450450 }
451451 }
452452
@@ -463,7 +463,7 @@ public static void Argument([DoesNotReturnIf(false)] bool condition, string? par
463463 NotNull ( resourceManager , nameof ( resourceManager ) ) ;
464464 if ( ! condition )
465465 {
466- throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) , arg1 , arg2 ) , parameterName ) ;
466+ throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) ! , arg1 , arg2 ) , parameterName ) ;
467467 }
468468 }
469469
@@ -479,7 +479,7 @@ public static void Argument([DoesNotReturnIf(false)] bool condition, string? par
479479 NotNull ( resourceManager , nameof ( resourceManager ) ) ;
480480 if ( ! condition )
481481 {
482- throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) , args ) , parameterName ) ;
482+ throw new ArgumentException ( Format ( resourceManager . GetString ( unformattedMessageResourceName , CultureInfo . CurrentCulture ) ! , args ) , parameterName ) ;
483483 }
484484 }
485485
0 commit comments