Value Class in C++/CLI
问题 What are the benifits of using a value class in C++/CLI.Can the value class contain member functions? 回答1: a value class is a ValueType - that means, whenever you assign it to another variable of the same type, the whole object gets copied into the other variable, leaving you with two separate copies. Examples of this are basic numeric data types like int , bool or double . ValueTypes are sealed, which means you cannot derive from them. A ref class is a reference type - if you assign it to