Why can properties not be public inside a ref class sealed
问题 The following code is illegal ( Visual Studio 2012 Windows Phone( Creating a windows phone direct3d app ) ) a non-value type cannot have any public data members 'posX' Header ref class Placement sealed { public: Placement( float rotX, float rotY, float rotZ, float posX, float posY, float posZ ); float rotX, rotY, rotZ, posX, posY, posZ; }; Cpp Placement::Placement( float rotX, float rotY, float rotZ, float posX, float posY, float posZ ) : posX( posX ), posY( posY ), posZ( posZ ) { this->rotX