title: automatic property with default value
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/40730/how-do-you-give-a-c-sharp-auto-property-a-default-value">How do you give a C# Auto-Property a default value?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there any nice way to provide a default value for an automatic property?</p>
  
  <p><code>public int HowHigh { get; set; } // defaults to 0</code></p>
  
  <p>If not explicitly set anywhere, I want it to be 5. Do you know a simple way for it? E.g. I could set it in constructor or something, but that's not elegant.</p>
  
  <p>UPDATE: C# 6 has got it: <a href="http://geekswithblogs.net/WinAZ/archive/2015/06/30/whatrsquos-new-in-c-6.0-auto-property-initializers.aspx" rel="noreferrer">http://geekswithblogs.net/WinAZ/archive/2015/06/30/whatrsquos-new-in-c-6.0-auto-property-initializers.aspx</a></p>