How to override a calculated value?
<p>So I have the following snippet of code:</p>

<pre><code>private Nullable&lt;decimal&gt; _excessWages;
public decimal ExcessWages
{
    get
    {
        return _excessWages ?? CalculateExcessWages();
    }
    set
    {
        if (value != CalculateExcessWages())
            _excessWages = value;
        else
            _excessWages = null;
    }
}
</code></pre>

<p>So basically the behavior I'm trying to implement is if a field is left blank or is assigned a value equal the calculated one use the calculated value, otherwise store the assigned value.</p>

<p>I have a lot of fields that need to support overriding like this. Is this the best way to accomplish this? If not what would you suggest?</p>
