We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c26991 commit 28bfbeaCopy full SHA for 28bfbea
src/SharedInfrastructure/Guard.cs
@@ -21,7 +21,7 @@ internal static partial class Guard
21
/// <typeparam name="TValue">The type of the value.</typeparam>
22
/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
23
[MethodImpl(MethodImplOptions.AggressiveInlining)]
24
- public static void NotNull<TValue>([NotNull]TValue? value, string parameterName)
+ public static void NotNull<TValue>([NotNull]TValue? value, [CallerArgumentExpression("value")] string? parameterName = null)
25
where TValue : class =>
26
ArgumentNullException.ThrowIfNull(value, parameterName);
27
0 commit comments