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 Type.SatisfiesConstraints internally #962

Open
dotnetjunkie opened this issue Oct 27, 2022 · 0 comments
Open

Use Type.SatisfiesConstraints internally #962

dotnetjunkie opened this issue Oct 27, 2022 · 0 comments
Labels
Milestone

Comments

@dotnetjunkie
Copy link
Collaborator

See: dotnet/runtime#28033

Possibly added to .NET 7, the SatisfiesConstraints check allows Simple Injector to do a reliable test instead of catching the exception thrown by MakeGenericType, which prevents unwanted first chance exceptions.

Downside of implementing this is that a new build output is added to the Simple Injector package.

@dotnetjunkie dotnetjunkie added this to the v6.0 milestone Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant