Sunday, July 22, 2007

Byte: keyword

• Range: 0 to 255
• This causes compilation error: byte x =10, y=20; due to automatic conversion to int
• There is a predefined implicit conversion from byte to short, ushort, int, uint, long, ulong, float, double, decimal
• No implcit conversion from floating-point types to byte

No comments: