Show Table of Contents
13.8. C# Data Types and .NET bindings
The following table shows the mapping between data types in .NET and C++..
Table 13.4. Data Type Mapping between C++ and .NET binding
| C++ Data Type | .NET binding |
|---|---|
void | nullptr |
bool | bool |
uint8 | byte |
uint16 | UInt16 |
uint32 | UInt32 |
uint64 | UInt64 |
int16 | char |
int16 | Int16 |
int32 | Int32 |
int64 | Int64 |
float | Single |
double | Double |
string | string |
qpid::types::Uuid | Guid |
Variant::Map | Dictionary< string, object > |
Variant::List | Collection< object > |
Note
.NET
string objects are translated to and from C++ strings using UTF-8 encoding only.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.