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
hey steve, wanted to check if you were open to a PR that would allow for a null name? this could be useful when you want a smart enum to capture a response like not given without jumping through extra hoops externally or adding an empty string in the smart enum. for example:
I dunno - I don't think I'd want to use a null for that. Why wouldn't you use a string like "Not Given" which is more clear and less likely to cause runtime NullReference exceptions?
Makes it harder for something like a dropdown where these options would be. If they select nothing, that still gets recognized as an option and can have extension classes off of it.
You could do a 'not given' name instead of that, but it feeds into the gymnastics outside of this workflow. Where you always have to check for that and return nothing, maybe not show that also as on a screen if the business doesn't want that, etc.
hey steve, wanted to check if you were open to a PR that would allow for a null name? this could be useful when you want a smart enum to capture a response like
not given
without jumping through extra hoops externally or adding an empty string in the smart enum. for example:The text was updated successfully, but these errors were encountered: