Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roy Berris 89 posts 577 karma points c-trib
    Sep 09, 2022 @ 12:48
    Roy Berris
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft