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

Refactor to use primary constructors from .net8 #244

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

Conversation

jviau
Copy link
Member

@jviau jviau commented Nov 14, 2023

This PR refactors to use primary constructors when possible. There are several instances of removing the field and this. accessors as I am switching to rely on primary ctor closure (let the compiler decide how to capture and store those fields given by the ctor when possible). I only do this when arg checking is not needed (will already be checked before ctor or is not production code).

Some additional refactor changes in this PR: removing unused fields/properties (we can add them back in when/if needed).

@jviau jviau requested a review from cgillum November 14, 2023 19:51
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't reviewed everything yet (there's a ton of files 😢) but had some high-level questions.

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