Both sides previous revisionPrevious revision | |
sqlways:dotnet:csharp-data-types [September 25, 2009, 09:37:10 AM] – leonov | sqlways:dotnet:csharp-data-types [May 31, 2023, 05:28:08 PM] (current) – external edit 127.0.0.1 |
---|
| \\ |
| [[https://www.ispirer.com|Ispirer Website]] |
| [[https://www.ispirer.com/application-conversion/migration-to-net|Ispirer Capabilities - .Net Conversion]] |
| [[https://www.ispirer.com/download/download-demo|Free Trial]] |
| ===== C# Data Types ===== |
| |
| ** [[sqlways:dotnet/csharp-data-types/mapping-to-other-applications |C# Data Types Mapping to Other Applications]] ** |
| |
| ===== Overview ===== |
| |
| ^ Data Type ^ Parameters and Range ^ |
| | || |
| ^ Character Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/char |char]]** - Fixed-length character data | U+0000 to U+ffff | |
| | **[[sqlways:dotnet/csharp-data-types/string |string]]** - Variable-length character data | No limit | |
| ^ Integer Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/long |long]]** - 64-bit integer data | –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | |
| | **[[sqlways:dotnet/csharp-data-types/int |int]]** - 32-bit integer data | -2,147,483,648 to 2,147,483,647 | |
| | **[[sqlways:dotnet/csharp-data-types/short |short]]** - 16-bit integer data | -32,768 to 32,767 | |
| ^ Fixed-Point Numeric Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/decimal |decimal]]** - Fixed-pont numeric data | ±1.0*10<sup>-28</sup> to ±7.9*10<sup>28</sup> | |
| ^ Floating-Point Numeric Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/double |double]]** - 64-bit floating-point numeric data | ±5.0*10<sup>-324</sup> to ±1.7*10<sup>308</sup> | |
| | **[[sqlways:dotnet/csharp-data-types/float |float]]** - 32-bit floating-point numeric data | ±1.5*10<sup>-45</sup> to ±3.4*10<sup>38</sup> | |
| ^ Date and Time Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/datetime |DateTime]]** - Date and time data type | January 1, 1753 through December 31, 9999 | |
| ^ Other Data Types ^^ |
| | **[[sqlways:dotnet/csharp-data-types/bool |bool]]** - Boolean data | true/false | |
| | **[[sqlways:dotnet/csharp-data-types/byte |byte]]** - Binary data type | 0 to 255 | |
| | **[[sqlways:dotnet/csharp-data-types/guid |Guid]]** - Global unique identifier | No limit | |
| | **[[sqlways:dotnet/csharp-data-types/object |object]]** - Unified data type | | |
| |