Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Nov 18, 2020

When the Nullable<T>.HasValue check is necesary, we should keep using Nullable<T>.Value after the check. Comparing to Nullable<T>.GetValueOrDefault(), it's semantically more clear that "I want the current value, not the default value" in this case.

Therefore, revert PR #13804 as agreed in #13791 (comment)

@ghost ghost assigned TravisEz13 Nov 18, 2020
@daxian-dbw daxian-dbw assigned iSazonov and unassigned TravisEz13 Nov 18, 2020
@daxian-dbw daxian-dbw changed the title Revert "Fix nullable usage on authenticode (#13791)" Revert "Fix nullable usage on authenticode (#13804)" Nov 18, 2020
@daxian-dbw daxian-dbw changed the title Revert "Fix nullable usage on authenticode (#13804)" Revert "Fix nullable usage on authenticode" Nov 18, 2020
@iSazonov iSazonov added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Nov 19, 2020
@iSazonov iSazonov merged commit 9b57c6e into master Nov 19, 2020
@iSazonov iSazonov deleted the revert-13804-bugfix/fix-usage-nullable branch November 19, 2020 03:16
@iSazonov iSazonov added this to the 7.2.0-preview.2 milestone Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-NotInBuild Indicates that a PR is reverted and not part of the build.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants