Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LelouBil
4 months ago
|
parent
|
context
|
favorite
| on:
What's New in C# 14: Null-Conditional Assignments
That's what's new in c#14, it allows you to do
customer?.Profile?.Avatar = "thing"
And will do nothing if the left hand side is null (not throw a null reference exception anymore)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: