How can i call JUST ONCE a function when a variable changes its value? c# : <p>Imagine I have an <strong>int count</strong>, and every time it gets changed i want to call the function <strong>DoSomething()</strong> how could i do it?</p>

<p>I think i have to use properties somehow (and would like how to know how to do it with a property), but any help will be great.</p>
