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
I love working with Option types but he thing that made us make our own implemenation is how the ToString() method works. It wraps the value in "Some(value)" or "None" in the None case. Seems a bit odd, why would you ever do it that way?
Isn't it possible to call the ToString() method on the value in the Some case and return an empty string in the None case? This makes working with the method way more useful in both Razor files/string interpolations.
Thanks
The text was updated successfully, but these errors were encountered:
I love working with Option types but he thing that made us make our own implemenation is how the ToString() method works. It wraps the value in "Some(value)" or "None" in the None case. Seems a bit odd, why would you ever do it that way?
Isn't it possible to call the ToString() method on the value in the Some case and return an empty string in the None case? This makes working with the method way more useful in both Razor files/string interpolations.
Thanks
The text was updated successfully, but these errors were encountered: