-
-
Notifications
You must be signed in to change notification settings - Fork 917
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
Introduce simplified null check [debatable] #2780
base: master
Are you sure you want to change the base?
Conversation
I already described why I cannot endorse these changes. |
Release of |
Examples of implementation in other repos |
…o expression # Conflicts: # src/Directory.Build.props # src/GraphQL.MemoryCache/MemoryDocumentCache.cs
Codecov Report
@@ Coverage Diff @@
## master #2780 +/- ##
==========================================
- Coverage 83.64% 83.61% -0.04%
==========================================
Files 377 378 +1
Lines 16378 16391 +13
Branches 2635 2635
==========================================
+ Hits 13700 13705 +5
- Misses 2056 2065 +9
+ Partials 622 621 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I suggest closing this PR. |
@Shane32, what are your objections? I really like the concise form of the |
Well, I guess I'm just not a fan of it. |
I'm not sure if these are cons or pros. 😄 |
And I'm happy the |
If OK then I'll copy-paste this approach in more places.
In the meantime waiting for dotnet/csharplang#2145
UPDATE
Available solution for NET6 is
ArgumentNullException.ThrowIfNull
.