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.