const short value = 0;
You can always resort to the CLR type if you need to
const Int16 value = 0;
>Hi everybody,
>
>Quite often when I need to compare, say, two values where one is a constant, I need to put (Int16) in front of that constant to avoid a compile error. I am wondering is there a way to somehow automatically make 0 to be Int16 without explicitly boxing it?
>
>Thanks in advance.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer