V10: Why is the IPublishedElement.Name now a nullable string?
So why is the Name property on the IPublishedElement now a nullable string? I've never seen the Name field to have a null value. And it feels like this is over-doing nullability. In what scenario's can this property be null. Or should it be changed back to be non-nullable.
When upgrading from 9 to 10 this threw a lot of possible null warnings which I decided to resolve with Name! everywhere when I want a non-nullable string when consuming it. I am aware this will throw a NPE, but if it does, it's an expected NPE and code should not resume anyway.
V10: Why is the IPublishedElement.Name now a nullable string?
So why is the Name property on the IPublishedElement now a nullable string? I've never seen the Name field to have a null value. And it feels like this is over-doing nullability. In what scenario's can this property be null. Or should it be changed back to be non-nullable.
When upgrading from 9 to 10 this threw a lot of possible null warnings which I decided to resolve with
Name!
everywhere when I want a non-nullable string when consuming it. I am aware this will throw a NPE, but if it does, it's an expected NPE and code should not resume anyway.is working on a reply...