We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has been introduced with NET6, but it should be "easy" to implement equal solution in NLog.Internal:
From:
if (factory is null) { throw new ArgumentNullException(nameof(factory)); }
To
ArgumentNullException.ThrowIfNull(factory);
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
To:
_logger = ArgumentNullException.ThrowIfNull(logger);
https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception.throwifnull?view=net-6.0
Ex.
static internal class ArgumentNullException { public static T ThrowIfNull<T>(T argument, [CallerArgumentExpression("argument")] string paramName = null) where T : class { if (argument is null) { throw new System.ArgumentNullException(paramName); } return argument; } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Has been introduced with NET6, but it should be "easy" to implement equal solution in NLog.Internal:
From:
To
From:
To:
https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception.throwifnull?view=net-6.0
Ex.
The text was updated successfully, but these errors were encountered: