Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Shared/ThrowHelpers/ArgumentNullThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static partial class ArgumentNullThrowHelper
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression("argument")] string? paramName = null)
{
#if !NET7_0_OR_GREATER
#if !NET6_0_OR_GREATER
if (argument is null)
{
Throw(paramName);
Expand All @@ -23,7 +23,7 @@ public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpres
#endif
}

#if !NET7_0_OR_GREATER
#if !NET6_0_OR_GREATER
[DoesNotReturn]
internal static void Throw(string? paramName) =>
throw new ArgumentNullException(paramName);
Expand Down