title: C++/CLI How to return ArrayList^
body: <p><pre><code>
  ArrayList^ className::getAll() {
      ArrayList^ items = gcnew ArrayList;
      //More code...</p>
  
  <p>return items;
  }
  </pre></code></p>
  
  <p>This throws me:
  c2143  error syntax missing ; before ^<br>
  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int  </p>
  
  <p>I'm using namespace System::Collection;</p>