Skip to content

C# 8 phase 1 #472

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

Merged
merged 3 commits into from
Oct 30, 2019
Merged

C# 8 phase 1 #472

merged 3 commits into from
Oct 30, 2019

Conversation

vslee
Copy link
Collaborator

@vslee vslee commented Oct 25, 2019

  • jjxtra began by marking some objects using the nullable (?) reference type signifier

johnnyasantoss
johnnyasantoss previously approved these changes Oct 29, 2019
Copy link
Collaborator

@johnnyasantoss johnnyasantoss left a comment

Choose a reason for hiding this comment

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

Looks like a good start into moving this codebase to cs8 😃

{
throw new InvalidOperationException("Invalid salt");
}
var cs = new CryptoStream(encrypted, AES.CreateDecryptor(), CryptoStreamMode.Read);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe here would be good to use using var expression.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you add an example of what you mean? Then I can add a commit to this PR. Alternatively, I can merge this PR and you can put it into your current PR or a new one.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was referring to the same expression in the second example of this post.
Also, I can add it later :)

Copy link
Collaborator Author

@vslee vslee left a comment

Choose a reason for hiding this comment

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

Good start

@vslee vslee requested a review from jjxtra October 29, 2019 15:42
@vslee
Copy link
Collaborator Author

vslee commented Oct 29, 2019

Need @jjxtra to put an approving review before I can merge (I know it's strange for him to be reviewing his own code but since I was the one starting the PR, I can't review my own PR)

@jjxtra
Copy link
Collaborator

jjxtra commented Oct 29, 2019

I don't know if I approve of my code to be honest :) We might consider backing out of nullable reference types on a project level and going to a per file level to reduce the warning barrage.

jjxtra
jjxtra previously approved these changes Oct 29, 2019
- we can go back to project wide once we convert everything
@vslee vslee dismissed stale reviews from jjxtra and johnnyasantoss via 70b013a October 30, 2019 02:42
@vslee
Copy link
Collaborator Author

vslee commented Oct 30, 2019

Far fewer warnings now (~50 instead of ~500)

@vslee
Copy link
Collaborator Author

vslee commented Oct 30, 2019

I think we can merge now, and then whittle the rest of the warnings down with time.

@vslee vslee merged commit 7ede01c into DigitalRuby:master Oct 30, 2019
@vslee
Copy link
Collaborator Author

vslee commented Oct 30, 2019

progress towards #450

@vslee vslee added maintenance such as tests and removed enhancement labels Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance such as tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants