S
sd
short Total=11;
short Index=Total-1;
will occurs the following error:
error CS0266: Cannot implicitly convert type 'int' to 'short'. An
explicit conversion exists (are you missing a cast?)
and this is correct:
short Index=(short)(Total-1);
A bit ugly...
short Index=Total-1;
will occurs the following error:
error CS0266: Cannot implicitly convert type 'int' to 'short'. An
explicit conversion exists (are you missing a cast?)
and this is correct:
short Index=(short)(Total-1);
A bit ugly...