Thrift types and their mappings - SolalPirelli/ThriftSharp GitHub Wiki
| Thrift type | .NET type | C# type | 
|---|---|---|
| bool | Boolean | bool | 
| byte | SByte | sbyte | 
| double | Double | double | 
| i16 | Int16 | short | 
| i32 | Int32 | int | 
| i64 | Int64 | long | 
| string | String | string | 
| binary | SByte[] | sbyte[] | 
N.B.: The Thrift byte and binary types are signed.
| Thrift type | .NET type | 
|---|---|
| list | IList<T>, orT[] | 
| set | ISet<T> | 
| map<K, V> | IDictionary<K, V> | 
You can use any concrete implementation of the collection interfaces, as long as it has a parameterless constructor.
| Thrift type | .NET type | C# type | 
|---|---|---|
| struct | Any reference type | class | 
| exception | Exception | - | 
| service | Any interface type | interface | 
Structs and exceptions must have a parameterless constructor.