Raising a propertychanged event without adding a private variable
<p>I have a property which looks like this.</p>

<pre><code>public int NumberOfElephants { get; set; }
</code></pre>

<p>this property is in an observablecollection and it has to notify another property that it has changed.</p>

<p>how would i do the following</p>

<pre><code>public int NumberOfElephants { get; set { OnPropertyChanged("totalAnimals"); }
</code></pre>

<p>without the code needing to be like this</p>

<pre><code>private int _numberOfElephants;
public int NumberOfElephants { 
    get { 
        return _numberOfElephants; 
    } 

    set { 
        _numberOfElephants = value; 
        OnPropertyChanged("totalAnimals"); 
    } 
}
</code></pre>
