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
Hello, I wrote two simple extension methods that are helping me in my project, but I'm guessing there is probably a better alternative already built in that I am not using:
I found a way of using the existing Or to achieve this, but it is a bit more verbose. With this ValueOr i get to write things like Email.ValueOr(string.Empty) which is handy when displaying optional info on the UI. Am I missing a better way of doing this?
The text was updated successfully, but these errors were encountered:
Hello, I wrote two simple extension methods that are helping me in my project, but I'm guessing there is probably a better alternative already built in that I am not using:
I found a way of using the existing Or to achieve this, but it is a bit more verbose. With this ValueOr i get to write things like
Email.ValueOr(string.Empty)
which is handy when displaying optional info on the UI. Am I missing a better way of doing this?The text was updated successfully, but these errors were encountered: