DEV Community

Discussion on: Should a modern programming language assume a byte is 8-bits in size?

Collapse
 
miffpengi profile image
Miff

Technically, while most numeric types in C# do that (int = System.Int32, ulong = System.ULong64), the eight bit types are System.Byte and System.SByte. (If they followed the convention they'd be UInt8 and Int8 respectively.)

Then again C# also assumes a char is 16 bits...