title: Inconsistent accessibility: property type is less accessible
body: <p>Please can someone help with the following error:</p>
  
  <blockquote>
    <p>Inconsistent accessibility: property type 'Test.Delivery' is less accessible than property 'Test.Form1.thelivery' </p>
  </blockquote>
  
  <pre><code>private Delivery thedelivery;
  
  public Delivery thedelivery
  {
      get { return thedelivery; }
      set { thedelivery = value; }
  }
  </code></pre>
  
  <p>I'm not able to run the program due to the error message of inconsistency. </p>
  
  <p>Here is my delivery class:</p>
  
  <pre><code>namespace Test
  {
      class Delivery
      {
          private string name;
          private string address;
          private DateTime arrivalTime;
  
          public string Name
          {
              get { return name; }
              set { name = value; }
          }
  
          public string Address
          {
              get { return address; }
              set { address = value; }
          }
  
          public DateTime ArrivlaTime
          {
              get { return arrivalTime; }
              set { arrivalTime = value; }
          }
  
          public string ToString()
          {
              { return name + address + arrivalTime.ToString(); }
          }
      }
  }
  </code></pre>