bool --> true / false

sbyte --> -128 ÷ 127 (System.SByte)
byte --> 0 ÷ 255 (System.Byte)
char --> U+0000 ÷ U+FFFF (System.Char) carattere unicode a 16 bit
short --> -32768 ÷ 32767 (System.Int16)
ushort --> 0 ÷ 65535 (System.UInt16)
int --> -2147483648 ÷ 2147483647 (System.Int32)
uint --> 0 ÷ 4294967295 (System.UInt32) suffix U
long --> -9223372036854775808 ÷ 9223372036854775807 (System.Int64) suffix L
ulong --> 0 ÷ 18446744073709551615 (System.UInt64)

float --> ±1.5 × 10^−45 ÷ ±3.4 × 10^38 (System.Single) suffix F
double --> ±5 × 10^−324 ÷ ±1.7 × 10^308 (System.Double) suffix D

decimal --> ±1.0 × 10^−28 ÷ ±7.9 × 10^28 (System.Decimal) suffix M

string --> lunghezza da 0 ÷ 2147483647 (System.String)

object --> da cui derivano tutti gli altri oggetti (System.Object)
Tags:
C#236 .NET66 Esempi225
Potrebbe interessarti anche: