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
use the ArgumentNullException.ThrowIfNull throw helper where possible to improve performance. Available with .NET 6
ArgumentNullException.ThrowIfNull
see: https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#exceptions source: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/ArgumentNullException.cs#L67-L69
https://andrewlock.net/exploring-dotnet-6-part-11-callerargumentexpression-and-throw-helpers/#throw-helpers-in-c-
https://github.com/search?q=repo%3AHavunen%2FSystemTextJsonPatch%20throw%20new%20Argument&type=code
The text was updated successfully, but these errors were encountered:
Hi, thanks for sharing. We should implement this IMO 👍
Sorry, something went wrong.
Slight performance optimization by using ExceptionHelper to throw Arg…
35a8df9
…umentNullExceptions #21
This is now implemented in master branch and will be available in the next release. The change improved overall performance about 5%.
No branches or pull requests
use the
ArgumentNullException.ThrowIfNull
throw helper where possible to improve performance. Available with .NET 6see: https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#exceptions
source: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/ArgumentNullException.cs#L67-L69
https://andrewlock.net/exploring-dotnet-6-part-11-callerargumentexpression-and-throw-helpers/#throw-helpers-in-c-
https://github.com/search?q=repo%3AHavunen%2FSystemTextJsonPatch%20throw%20new%20Argument&type=code
The text was updated successfully, but these errors were encountered: