I\'m converting a C++ program to C#, but this part has me confused. What does return *this mean?
template< EDemoCommands msgType, typename PB_OBJECT_TYPE
You are just returning a reference to the object. this is a pointer and you are dereferencing it.
this
It translates to C# return this; in the case that you are not dealing with a primitive.
return this;