Datentypen
Die Datentypen orientieren sich in allen .NET-Programmiersprachen am Typsystem des Common Type System (CTS). Erläuterungen dazu finden Sie bereits im Kapitel 4.
Tabelle 6.3 Vergleich der Datentypen in verschiedenen .NET-Sprachen
Art | Visual Basic | C# | Visual J# | JScript .NET | Visual C++ |
---|---|---|---|---|---|
Ganzzahl 1 Byte | Byte | byte | byte | byte | BYTE, bool |
Ganzzahl Boolean | Boolean | bool | boolean | boolean | VARIANT_BOOL |
Ganzzahl 2 Bytes | Short | short | short | short | signed short int, __int16 |
Ganzzahl 4 Bytes | Integer | int | int | int | long, (long int, signed long int) |
Ganzzahl 8 Bytes | Long | long | long | long | __int64 |
Zahl 4 Bytes | Single | float | float | float | float |
Zahl 8 Bytes | Double | double | double | double | double |
Zahl 12 Bytes | Decimal | decimal | – | decimal | DECIMAL |
Zeichen 1 Byte oder 2 Bytes | Char | char | char | char | signed char, __int8 |
Zeichenkette | String | string ... |
Get Microsoft .NET 4.0 - Crashkurs now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.