I'm trying to learn how to write good C # code, and I need your advice.
If I have, for example, a value without an unsigned number that is less than 255, so this value matches the type byte. But this value will not be used as a byte, but as Intfor setting the combobox index, so it will need casting.
My question is: how much do I need to worry about data types when writing good C # code? Do I need to declare this value as Intto avoid casting?
Thank you for your time.
user536158
source
share