Skip to content

Commit b6cfbd0

Browse files
authored
update ArgumentNullException.ThrowIfNull usage (#2563)
1 parent 5a58c24 commit b6cfbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/ThrowHelpers/ArgumentNullThrowHelper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static partial class ArgumentNullThrowHelper
1313
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
1414
public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression("argument")] string? paramName = null)
1515
{
16-
#if !NET7_0_OR_GREATER
16+
#if !NET6_0_OR_GREATER
1717
if (argument is null)
1818
{
1919
Throw(paramName);
@@ -23,7 +23,7 @@ public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpres
2323
#endif
2424
}
2525

26-
#if !NET7_0_OR_GREATER
26+
#if !NET6_0_OR_GREATER
2727
[DoesNotReturn]
2828
internal static void Throw(string? paramName) =>
2929
throw new ArgumentNullException(paramName);

0 commit comments

Comments
 (0)