I am trying to learn to write good C# code and i want your advice.
If i have for example an unsigned number value that is smaller than 255 so this value fits in the byte
type. But this value will not be used as byte but as an Int
to set the combobox index so it will needs casting.
My question is how much do I have to worry about data types when writing good C# code? Do I need to declare this value as an Int
to avoid casting?
Thank you for your time.