title: Why can properties not be public inside a ref class sealed
body: <p>The following code is illegal ( Visual Studio 2012 Windows Phone( Creating a windows phone direct3d app ) )</p>
  
  <pre><code>a non-value type cannot have any public data members 'posX'
  </code></pre>
  
  <p><strong>Header</strong></p>
  
  <pre><code>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;
  };
  </code></pre>
  
  <p><strong>Cpp</strong></p>
  
  <pre><code>Placement::Placement(
          float rotX, 
          float rotY, 
          float rotZ, 
          float posX, 
          float posY, 
          float posZ
      )
      :   posX( posX ),
          posY( posY ),
          posZ( posZ )
  {
      this-&gt;rotX = static_cast&lt;float&gt;(rotX);
      this-&gt;rotY = static_cast&lt;float&gt;(rotY);
      this-&gt;rotZ = static_cast&lt;float&gt;(rotZ);
  }
  </code></pre>
  
  <p><strong>Why and how do I have to set the properties? I'm used to normal C++ not C++ CX( I think it's called that right? )... Do I have to create methods that serve the properties?</strong></p>
  
  <p>*This problem stemmed from me originally trying to create a normal class and creating a pointer to it, only to be complained to about the fact I cannot use * rather I have to use ^ which means I have to create a ref class instead...
  I don't really understand why?*</p>
  
  <p><strong>Is it something to do with WinRT or more specifically ARM processors?</strong></p>