c# play stop a wav file
<p>I have a button that has the ability to play and stop a waf file. 
In the handler button method i have</p>

<pre><code>if (button.Text="play")
{
..filepath of the wav file
wav.play();
button.txt="stop"
}
else{
wav.stop();      
button.Text="play"
}
</code></pre>

<p>but when the debugger goes on the else the wav is null , so i have a null exception.where am i wrong? </p>
