title: Custom getters/setters in .NET - MVC
body: <pre><code>[DisplayFormat(DataFormatString = "{0:c}")]
  [DataType(DataType.Currency)]
  public decimal? PotentialFutureExposure
  {
      get { return STPData.MaximumCreditExposure; }
      set 
      { 
          STPData.MaximumCreditExposure = value;
          this.PotentialFutureExposureOverride = value;
      }
  }
  
  public decimal? PotentialFutureExposureOverride { get; set; }
  </code></pre>
  
  <p>So I have these two properties. Basically, I want the <code>PotentialFutureExposureOverride</code> property to return it's own value if it has one, otherwise I want it to return the value of <code>PotentialFutureExposure</code>. Now <code>PotentialFutureExposure</code> sets the override when it's set, but for some reason currently,  <code>PotentialFutureExposureOverride</code> is still returning blank even though <code>PotentialFutureExposure</code> has a value.</p>
  
  <p>Thanks.</p>