I just started reading up on the C# language, and one of the first sections in my reading material is, naturally, variables and types.
In short order I came across the integral types table, which listed sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
and char
.
The exception to the pairing here is char
, so let's disregard it and have a look at the others.
The first pair, byte
, prefixes the signed version with an "s", and leaves the unsigned version without a prefix. But for all the other pairs, the relation is reversed... the signed version is without prefix and the unsigned has a "u" prefix.
Is there a reason for this that I should be aware of, or is this just a design quirk?
Link for reference: http://msdn.microsoft.com/en-us/library/exx3b86w.aspx