dodyg / practical-aspnetcore

Practical samples of ASP.NET Core 9 preview-5, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
MIT License
9.03k stars 1.16k forks source link

Refactor #347

Closed ghost closed 1 year ago

ghost commented 1 year ago

Conditional access is an alternative way for null checking. You've merged this PR but you didn't merge the PR that I've used null checking. Is there any technical reason?

dodyg commented 1 year ago

The point of a sample code is clarity. A bunch of if statement really doesn't add any value when the point of the sample code is to demonstrate ideas.