title: C# - unable to return List
body: <p>i'm trying to return list of objects from a class and get the following error:</p>
  
  <p><code>Error  1   Inconsistent accessibility: property type 'System.Collections.Generic.List&lt;EventXmlExtract.Attribute&gt;' is less accessible than property 'EventXmlExtract.EventExtract.AttributeList'    C:\Documents and Settings\eyalk\My Documents\Visual Studio 2010\Projects\Blobs\EventExtractDll\EventExtract.cs  14  32  EventExtractDll</code></p>
  
  <p>my code tries return _attributeList:</p>
  
  <pre><code>public class EventExtract
  {
      private string _type;
      private int _type_id;
      private List&lt;Attribute&gt; _attributeList = new List&lt;Attribute&gt;();
  
      internal List&lt;Attribute&gt; AttributeList
      {
          get { return _attributeList; }
          set { _attributeList = value; }
      }
  }
  </code></pre>
  
  <p>what is the problem ? and how can i retrieve the list ?</p>