title: property of array<ref struct structname^>^ type
body: <p>i am having problems declaring a property in C++ of array^ type.</p>
  
  <p>I did it this way..</p>
  
  <pre><code>array&lt;ref struct structname^&gt;^ variable = gcnew array&lt;ref struct structname^&gt;(10);
  
  
  property array&lt;ref struct structname^&gt;^ PROPERTY
  {
  array&lt;ref struct structname^&gt;^ get();
  void set();
  }
  
  array&lt;ref struct structname^&gt;^ class::get()
  {
  return variable;
  }
  
  void class::set(array&lt;ref struct structname^&gt;^ x)
  {
  //code here
  }
  </code></pre>
  
  <p>I get an error like this:</p>
  
  <blockquote>
    <p>error C2556: 'cli::array ^namespace::class::PROPERTY::get(void)'
    : overloaded function differs only by return type from
    'cli::array ^namespace::class::PROPERTY::get(void)'</p>
  </blockquote>