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(
1818#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
1919 [ NotNull ]
2020#endif
21- object ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
21+ object ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
2222 {
2323#if ! NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
2424 if ( argument is null )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void ThrowIfNullOrEmpty(
1818#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
1919 [ NotNull ]
2020#endif
21- string ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
21+ string ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
2222 {
2323#if ! NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
2424 if ( argument is null || argument == string . Empty )
@@ -46,7 +46,7 @@ public static void ThrowIfNullOrWhiteSpace(
4646#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
4747 [ NotNull ]
4848#endif
49- string ? argument , [ CallerArgumentExpression ( " argument" ) ] string ? paramName = null )
49+ string ? argument , [ CallerArgumentExpression ( nameof ( argument ) ) ] string ? paramName = null )
5050 {
5151 ArgumentNullThrowHelper . ThrowIfNull ( argument ) ;
5252
You can’t perform that action at this time.
0 commit comments