File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void ThrowIfNull(
18
18
#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
19
19
[ NotNull ]
20
20
#endif
21
- object ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
21
+ object ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
22
22
{
23
23
#if ! NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
24
24
if ( argument is null )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void ThrowIfNullOrEmpty(
18
18
#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
19
19
[ NotNull ]
20
20
#endif
21
- string ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
21
+ string ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
22
22
{
23
23
#if ! NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
24
24
if ( argument is null || argument == string . Empty )
@@ -46,7 +46,7 @@ public static void ThrowIfNullOrWhiteSpace(
46
46
#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
47
47
[ NotNull ]
48
48
#endif
49
- string ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
49
+ string ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
50
50
{
51
51
ArgumentNullThrowHelper . ThrowIfNull ( argument ) ;
52
52
You can’t perform that action at this time.
0 commit comments