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

Treat Options without parameterless constructor as immutable #891

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Abdallah-Darwish
Copy link

@Abdallah-Darwish Abdallah-Darwish commented May 31, 2023

Hey,

This is my attempt to address issue #890 by checking if the type has a parameterless constructor before using Activator.CreateInstance<T>().

Please let me know if I didn't follow any of the repo guidelines or conventions.

@Abdallah-Darwish Abdallah-Darwish marked this pull request as draft May 31, 2023 01:28
@Abdallah-Darwish Abdallah-Darwish marked this pull request as ready for review May 31, 2023 01:48
@Abdallah-Darwish Abdallah-Darwish changed the title Treat types without parameterless constructor as immutable Treat Options without parameterless constructor as immutable May 31, 2023
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.

None yet

1 participant