Skip to content
New issue

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 ArgumentNullException.ThrowIfNull when supported #149

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

lahma
Copy link
Contributor

@lahma lahma commented Oct 2, 2024

Because string-based typed id construction is usually in hot path, it makes sense to remove exception throwing from constructor. Any exception throwing disables the ability to inline the code in question. Using NET 7's new ArgumentNullException.ThrowIfNull for the simples implementation.

@lahma lahma marked this pull request as ready for review October 2, 2024 07:03
@andrewlock
Copy link
Owner

Great, thanks!

@andrewlock andrewlock merged commit 7063017 into andrewlock:master Oct 2, 2024
3 checks passed
@lahma lahma deleted the argument-null-helper branch October 3, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants