Please see this attachment, it includes the project with a single class, also the c# output file. Notice that it generates properly for C++