title: C# "must declare a body because it is not marked abstract, extern, or partial"
body: <p>I'm not sure why i'm getting this error to be honest.</p>
  
  <pre><code>private int hour
  {
      get;
      set
      {
          //make sure hour is positive
          if (value &lt; MIN_HOUR)
          {
              hour = 0;
              MessageBox.Show("Hour value " + value.ToString() + " cannot be negative. Reset to " + MIN_HOUR.ToString(),
                      "Invalid Hour", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
          }
          else
          {
              //take the modulus to ensure always less than 24 hours
              //works even if the value is already within range, or value equal to 24
              hour = value % MAX_HOUR;
          }
      }
  }
  </code></pre>
  
  <p>I've also tried just doing an actual property:</p>
  
  <pre><code>public int hour 
  { 
      get; 
      set
      {
          //make sure hour is positive
          if (value &lt; MIN_HOUR)
          {
              hour = 0;
              MessageBox.Show("Hour value " + value.ToString() + " cannot be negative. Reset to " + MIN_HOUR.ToString(),
                      "Invalid Hour", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
          }
          else
          {
              //take the modulus to ensure always less than 24 hours
              //works even if the value is already within range, or value equal to 24
              hour = value % MAX_HOUR;
          }
      } 
  }
  </code></pre>
  
  <p>Suggestions?</p>