Monday, June 18, 2018

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.

Design question around value type and default value Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team