Windows Types de données de base du Runtime
ce tableau répertorie les types de données de base pris en charge par l’Windows Runtime, et indique le type correspondant en C # , Visual Basic et C++.
| Type de données | JavaScript | C# | VB | C++ |
|---|---|---|---|---|
| Booléen | Booléen | bool | Booléen | bool |
| Byte | Nombre | byte | Byte | unsigned char |
| Char | Chaîne | char | Char | unsigned char |
| Char16 | Chaîne | char | Char | WCHAR _ t |
| DateTime | Date | DateTimeOffset | DateTimeOffset | DateTime |
| Double | Nombre | double | Double | double |
| Guid | Chaîne | Guid | Guid | Guid |
| Int16 | Nombre | short | Résumé | short |
| Int32 | Nombre | int | Integer | int |
| Int64 | Nombre | long | Long | __Int64 |
| Object | Object | object | Object | Objet ^ |
| Point | Point | Point | Point | Point |
| Rect | Rect | Rect | Rect | Rect |
| Unique | Nombre | float | Unique | float |
| Taille | Taille | Taille | Taille | Taille |
| Chaîne | Chaîne | string | Chaîne | Chaîne ^ |
| TimeSpan | Nombre | TimeSpan | TimeSpan | TimeSpan |
| UInt8 | Nombre | byte | Byte | unsigned char |
| UInt16 | Nombre | ushort | UShort | unsigned short |
| UInt32 | Nombre | uint | UInteger | nombre entier non signé |
| UInt64 | Nombre | ulong | Correspondante | unsigned _ _ Int64 |
| Uri | Uri | Uri | Uri | URI ^ |
| Nullité | Undefined | nullité | Nullité | nullité |
le tableau suivant indique les types .net qui correspondent aux types de données Windows Runtime.
| Windows Runtime | .NET |
|---|---|
| Booléen | System.Boolean |
| Byte | System.Byte |
| Char | System. Char |
| Char16 | System. Char |
| DateTime | System.DateTimeOffset |
| Double | System. double |
| Guid | System.Guid |
| Int16 | System.Int16 |
| Int32 | System.Int32 |
| Int64 | System.Int64 |
| Object | System.Object |
| Unique | System. Single |
| Chaîne | System.String |
| TimeSpan | System.TimeSpan |
| UInt8 | System.Byte |
| UInt16 | System.UInt16 |
| UInt32 | System.UInt32 |
| UInt64 | System.UInt64 |
| Uri | System.Uri |
| Nullité | System.Void |