Design question around value type and default value
I'm stuck in a design pickle.
I have a drop down in which the values are keys of type double. What should I use to represent that a key was not selected?
I'm wary of just returning decimal.Zero since that would mean keys cannot be zero.
Another idea is to throw an exception.
0 comments:
Post a Comment