Why is a cast required for byte subtraction in C#? [duplicate]

Because subtraction is coercing up to an integer. As I recall, byte is an unsigned type in C#, so subtraction can take you out of the domain of bytes.

Leave a Comment