#: , .
, , , , . , C# , . , C# .
#, . , , . , . , . , "" , . , , . , , -. .
C# 4.0 , dynamic , . dynamic . dynamic 17.
C#
C# : . . , , 3,1416 212. , . , . .
C# 13 , . 3.1. , . ( , .) #, , , . .
. 3.1. C#
Bool
, :
Byte
8-
Char
Decimal
( )
Double
Float
|
|
Int
Long
Sbyte
8-
Short
Uint
Ulong
Ushort
C# . , C# . , int . . , .
, C# : , . .
C# : char, byte, sbyte, short, ushort, int, uint, long ulong. char , , . . .
Byte
0-255
Sbyte
-128-127
Short
-32 768-32 767
Ushort
0-65 535
Int
-2 147 483 648-2 147 483 647
Uint
0-4 294 967 295
Long
-9 223 372 036 854 775 808-9 223 372 036 854 775 807
Ulong
0-18 446 744 073 709 551 615
, C# : . . , , C# , . , , , 1. , , 1.
, . , , 32 767 short .
1, , -1, . ushort, 1 65 535.
|
|
, int. int , . , int, . , , uint, long, ulong. , . long.
// .
Using System;
class Inches {
static void Main() { long inches; long miles;
miles = 93000000; // 93 000 000
// 5 280 , 12 , inches = miles * 5280 * 12;
Console.WriteLine(" : " + inches + " .");
}
}