There was an error while loading. Please reload this page.
1 parent b6cfbd0 commit 3bf19a1Copy full SHA for 3bf19a1
1 file changed
src/Shared/ThrowHelpers/ArgumentNullThrowHelper.cs
@@ -11,7 +11,7 @@ internal static partial class ArgumentNullThrowHelper
11
/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
12
/// <param name="argument">The reference type argument to validate as non-null.</param>
13
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
14
- public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression("argument")] string? paramName = null)
+ public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
15
{
16
#if !NET6_0_OR_GREATER
17
if (argument is null)
0 commit comments