You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Inevitably, when using the path through an object, you come across the case where an object in the path is null. As expected this causes an exception. Is there any way to deal with this in a similar way to the c#6 syntax e.g. myproperty?.mySubproperty
Really handy little library by the way :)
The text was updated successfully, but these errors were encountered:
It would definitely be possible to support the same syntax as the null conditional operator in C#.
Another way would be to add an extra method, ResolveSafe, which doesn't throw exceptions, but returns null.
I'm not sure yet which the better option is, but this sure is a good feature to add.
Inevitably, when using the path through an object, you come across the case where an object in the path is null. As expected this causes an exception. Is there any way to deal with this in a similar way to the c#6 syntax e.g. myproperty?.mySubproperty
Really handy little library by the way :)
The text was updated successfully, but these errors were encountered: