title: Experiencing "Inconsistent accessibility: return type is less accessible than method"
body: <p>I am faced with this error while coding with C# using Visual Studio 2010.</p>
  
  <pre><code>public List&lt;Employee&gt; employee_getData()
  {
      List&lt;Employee&gt; employees;
      employees = new List&lt;Employee&gt;();
      connection = new SqlConnection(connectionStr);
      cmd = new SqlCommand("sp_employeeList", connection);
  
      try
      {
          connection.Open();
          dr = new SqlDataReader();
          dr = cmd.ExecuteReader();
          while (dr.Read())
          {
              Employee e = new Employee(dr["e_ID"].ToString(), dr["e_Name"].ToString(), DateTime.Parse(dr["e_dayofBirth"].ToString()), dr["e_Regency"].ToString()
              , float.Parse(dr["e_salaryRate"].ToString()), dr["e_workingBranch"].ToString(), dr["e_workingPosition"].ToString(),
              dr["e_username"].ToString(), dr["e_passcode"].ToString());
              employees.Add(e);
          }
      }
      catch (Exception e)
      {
      }
      finally
      {
          connection.Close();
      }
  
      return employees;
  }
  </code></pre>
  
  <p>It throws an exception with following details: </p>
  
  <blockquote>
    <p>Inconsistent accessibility: return type
    'System.Collections.Generic.List' is less
    accessible than method
    'ResortLib.DataAccessObject.DAO_Employee.employee_getData()'</p>
  </blockquote>