title: How to create List<Custom object>
body: <p>I have a project in C++/Cli and native mixed . I created a custom object and i want to create a list of that object type seems not to be ok . Here is the code:</p>
  
  <pre><code>  #pragma once
  #include &lt;windows.h&gt;
  #include &lt;stdio.h&gt;
  #include "..\..\Toolkit\Include\TypeHelper_h.h"
  using namespace System;
  using namespace System::Runtime::InteropServices; 
  using namespace System::Threading;
  using namespace System::Collections::Generic;
  
  namespace TypeHelperControl {
  
  public ref class MyClass
  {
  public:
      MyClass(){List&lt;TypeVariable^&gt;^ m_someObj;};
      ~MyClass();
  
  private:
  
  };
  
  
   public ref class TypeVariable 
   {
   public:
  
       TypeVariable(String^ VariableName,String^ VariableType,String^ VariableValue)
       {
        this-&gt;m_Name = VariableName;
        this-&gt;m_Type = VariableType;
        this-&gt;m_Value = VariableValue;
       };
       String^ get_Name()
       { 
           return m_Name;
       }
       String^ get_Type()
       {
           return m_Type;
       }
       String^ get_Value()
       {
           return m_Value;
       }
   private:
       String^ m_Name;
       String^ m_Type;
       String^ m_Value;
   };
  
  };
  </code></pre>
  
  <p>List^ m_someObj; Is generating multiple errors</p>
  
  <pre>
  error C2059: syntax error : '>' 
  error C2065: 'VariableType' : undeclared identifier
  error C1004: unexpected end-of-file found
  </pre>
  
  <p>Thank you</p>