Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Treat Options without parameterless constructor as immutable#891

Open
Abdallah-Darwish wants to merge 5 commits intocommandlineparser:developcommandlineparser/commandline:developfrom
Abdallah-Darwish:issue-890Abdallah-Darwish/commandline:issue-890Copy head branch name to clipboard
Open

Treat Options without parameterless constructor as immutable#891
Abdallah-Darwish wants to merge 5 commits intocommandlineparser:developcommandlineparser/commandline:developfrom
Abdallah-Darwish:issue-890Abdallah-Darwish/commandline:issue-890Copy head branch name to clipboard

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.