title: Exception of type 'System.StackOverflowException' was thrown
body: <p>My program throws this exception:</p>
  
  <blockquote>
    <p>System.StackOverflowException</p>
  </blockquote>
  
  <p>when the compiler executes the set property.</p>
  
  <p>The <code>wine</code> class:</p>
  
  <pre><code>class wine
  {
      public int year;
      public string name;
      public static int no = 5;
  
      public wine(int x, string y)
      {
          year = x;
          name = y;
          no++;
      }
  
      public int price
      {
          get
          {
              return no * 5;
          }
  
          set
          {
              price = value;
          }
      }
  }
  </code></pre>
  
  <p>The <code>Program</code> class:</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          wine w1 = new wine(1820, "Jack Daniels");
  
          Console.WriteLine("price is " + w1.price);
          w1.price = 90;
          Console.WriteLine(w1.price);
          Console.ReadLine();
      }
  }
  </code></pre>