Saturday, October 24, 2015

Useful data types in .Net



S.No
Data Type
Size
Min Value
Max Value
Description
1
Byte
1 Byte (8 bit)



2
Char
2 Bytes


Each character contains 2 Bytes
3
String
Assigned chars * 2 Bytes



4
Int16 / Short
16 bit (2 Bytes)
-32768
32767

5
UInt16 /ushort
16 bit (2 Bytes)
0
65536

6
Int32 / int
32 bit (4 Bytes)
-2147483647
2147483648

7
UInt32 / uint
32 bit (4 Bytes)
0
4294967296

8
Int64 / long
64 bit (8 Bytes)
Neg (2 pow (64) / 2 -1)
2 pow (64) / 2

9
UInt64 / ulong
64 bit (8 Bytes)
0
2 pow (64)

10
bool




11
DateTime




12
float
4 Bytes


7 deccimal places
13
decimal
8 Bytes


16 decimal places
14
double
16 Bytes


29 decimal places

No comments:

Post a Comment

CI/CD - Safe DB Changes/Migrations

Safe DB Migrations means updating your database schema without breaking the running application and without downtime . In real systems (A...