Value Class in C++/CLI
What are the benifits of using a value class in C++/CLI.Can the value class contain member functions? 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 another variable of the same type, you copy only a reference. So the two variables basically "point" to the