which type is best for three radiobuttons?

Posted by Manog on Stack Overflow See other posts from Stack Overflow or by Manog
Published on 2014-05-28T07:42:57Z Indexed on 2014/05/28 9:26 UTC
Read the original article Hit count: 155

Maybe you consider this question trivial but im just curious what is your opinion.

I have three radiobuttons. "Show blue", "Show red" and "Show all".

I did it with nullable boolean. There is collumn in database where blue is 0 and red is 1 so in metode i have to translate bool to int to compare those values (i do it in c#).Of course it works, but i wonder if it is the best solution.

And question is wich type is best in this case? nullable bool, int, or maybe string?

© Stack Overflow or respective owner

Related posts about c#

Related posts about radio-button