8
Can assignment be used with null conditional operators?
(programming.dev)
A community about the C# programming language
Getting started
Useful resources
IDEs and code editors
Tools
Rules
Related communities
I can see how you could think of the setter like
Current?.Response.set_ContentType("text/json")and then ifCurrentis null you just skip the assignment like you would any other method call.Yeah, for properties but not instance fields.